fix errors in call logic
authorMarius Mauch <genone@gentoo.org>
Fri, 7 Sep 2007 11:41:25 +0000 (11:41 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 7 Sep 2007 11:41:25 +0000 (11:41 -0000)
svn path=/main/trunk/; revision=7754

pym/portage/env/loaders.py

index e7f5289a7054f95a78066d148607de280fbc086f..e55e2793e9a919d0ed952d47eec92ffde5ca4a62 100644 (file)
@@ -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: