[Python-checkins] distutils2: Fixed a bug where the dirs and files were returned arbitrary from the file
tarek.ziade
python-checkins at python.org
Sun Jan 23 15:48:23 CET 2011
tarek.ziade pushed 50e9f2e1e5e7 to distutils2:
http://hg.python.org/distutils2/rev/50e9f2e1e5e7
changeset: 860:50e9f2e1e5e7
user: Alexandre Hamelin <quad.on at gmail.com>
date: Wed Dec 08 21:23:42 2010 -0500
summary:
Fixed a bug where the dirs and files were returned arbitrary from the file
system. Makes the test case happier.
files:
distutils2/mkcfg.py
diff --git a/distutils2/mkcfg.py b/distutils2/mkcfg.py
--- a/distutils2/mkcfg.py
+++ b/distutils2/mkcfg.py
@@ -317,7 +317,7 @@
for root, dirs, files in os.walk(curdir):
if to_skip(root):
continue
- for dir_ in dirs:
+ for dir_ in sorted(dirs):
if to_skip(dir_):
continue
fullpath = os.path.join(root, dir_)
@@ -334,7 +334,7 @@
if True in [root.startswith(path) for path in scanned]:
continue
- for file in files:
+ for file in sorted(files):
fullpath = os.path.join(root, file)
if to_skip(fullpath):
continue
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list