summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-09-07 11:41:25 +0000
committerMarius Mauch <genone@gentoo.org>2007-09-07 11:41:25 +0000
commitacdea3e1cc3e6c421cf37a09ad59f0599d00f69f (patch)
tree47884f55b92cda73bf5afadde25d15b256fe1998
parent97929938006be5405be632ee1181b2e1a30f9620 (diff)
downloadportage-acdea3e1cc3e6c421cf37a09ad59f0599d00f69f.tar.gz
portage-acdea3e1cc3e6c421cf37a09ad59f0599d00f69f.tar.bz2
portage-acdea3e1cc3e6c421cf37a09ad59f0599d00f69f.zip
fix errors in call logic
svn path=/main/trunk/; revision=7754
-rw-r--r--pym/portage/env/loaders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/env/loaders.py b/pym/portage/env/loaders.py
index e7f5289a7..e55e2793e 100644
--- a/pym/portage/env/loaders.py
+++ b/pym/portage/env/loaders.py
@@ -41,8 +41,8 @@ def RecursiveFileLoader(filename):
for root, dirs, files in os.walk(filename):
if 'CVS' in dirs:
dirs.remove('CVS')
- files = filter(files, str.startswith('.'))
- files = filter(files, str.endswith('~'))
+ files = [f for f in files if not f.startswith('.')]
+ files = [f for f in files if not f.endswith('~')]
for f in files:
yield f
else: