[Python-checkins] distutils2: Change strange idiom

tarek.ziade python-checkins at python.org
Sat Nov 6 22:56:15 CET 2010


tarek.ziade pushed 1e41afca6ae3 to distutils2:

http://hg.python.org/distutils2/rev/1e41afca6ae3
changeset:   798:1e41afca6ae3
parent:      792:f73bbb8235b2
user:        ?ric Araujo <merwok at netwok.org>
date:        Fri Nov 05 16:12:29 2010 +0100
summary:     Change strange idiom
files:       distutils2/mkcfg.py

diff --git a/distutils2/mkcfg.py b/distutils2/mkcfg.py
--- a/distutils2/mkcfg.py
+++ b/distutils2/mkcfg.py
@@ -321,8 +321,9 @@
             if to_skip(root):
                 continue
 
-            if True in [root.startswith(path) for path in scanned]:
-                continue
+            for path in scanned:
+                if root.startswith(path):
+                    continue
 
             for file in files:
                 fullpath = os.path.join(root, file)

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list