From 2e92a1b05bd3f8edb93282a0f9bf8545420c469e Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sat, 8 Sep 2007 21:52:55 +0000 Subject: [PATCH] compress two loop iterations into one svn path=/main/trunk/; revision=7764 --- pym/portage/env/loaders.py | 3 +-- 1 file changed, 1 insertion(+), 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: -- 2.26.2