[Python-checkins] distutils2: remove the usage of any
tarek.ziade
python-checkins at python.org
Fri Nov 5 03:00:54 CET 2010
tarek.ziade pushed f73bbb8235b2 to distutils2:
http://hg.python.org/distutils2/rev/f73bbb8235b2
changeset: 792:f73bbb8235b2
tag: tip
user: Tarek Ziade <tarek at ziade.org>
date: Fri Nov 05 03:00:51 2010 +0100
summary: remove the usage of any
files: distutils2/mkcfg.py
diff --git a/distutils2/mkcfg.py b/distutils2/mkcfg.py
--- a/distutils2/mkcfg.py
+++ b/distutils2/mkcfg.py
@@ -284,11 +284,14 @@
def to_skip(path):
path = relative(path)
- if any([path.startswith(pref) for pref in _pref]):
- return True
+ for pref in _pref:
+ if path.startswith(pref):
+ return True
- if any([path.endswith(suf) for suf in _suf]):
- return True
+ for suf in _suf:
+ if path.endswith(suf):
+ return True
+
return False
def relative(path):
@@ -318,7 +321,7 @@
if to_skip(root):
continue
- if any([root.startswith(path) for path in scanned]):
+ if True in [root.startswith(path) for path in scanned]:
continue
for file in files:
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list