summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-09-08 21:52:55 +0000
committerAlec Warner <antarus@gentoo.org>2007-09-08 21:52:55 +0000
commit2e92a1b05bd3f8edb93282a0f9bf8545420c469e (patch)
tree955ee1de78d90f874fbd704e65c8e9be417bffd2
parentb419bafe835fd45e3010b385fc7981e99e5a228b (diff)
downloadportage-2e92a1b05bd3f8edb93282a0f9bf8545420c469e.tar.gz
portage-2e92a1b05bd3f8edb93282a0f9bf8545420c469e.tar.bz2
portage-2e92a1b05bd3f8edb93282a0f9bf8545420c469e.zip
compress two loop iterations into one
svn path=/main/trunk/; revision=7764
-rw-r--r--pym/portage/env/loaders.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/env/loaders.py b/pym/portage/env/loaders.py
index ba250ecd4..1d0ca01aa 100644
--- a/pym/portage/env/loaders.py
+++ b/pym/portage/env/loaders.py
@@ -41,8 +41,7 @@ def RecursiveFileLoader(filename):
for root, dirs, files in os.walk(filename):
if 'CVS' in dirs:
dirs.remove('CVS')
- files = [f for f in files if not f.startswith('.')]
- files = [f for f in files if not f.endswith('~')]
+ files = [f for f in files if not f.startswith('.') and not f.endswith('~')]
for f in files:
yield os.path.join(root, f)
else: