summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-03-30 08:04:49 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-03-30 08:04:49 +0200
commit7e66881ccc78ffc02f3bce0b96f594233ecf9d80 (patch)
tree5659e695a3b64e3d7aec811d0f341f0c0e1da97f
parent2f4197641d994486784912a9cad66ecf174fdc65 (diff)
downloadpep8-7e66881ccc78ffc02f3bce0b96f594233ecf9d80.tar.gz
Minor regression in the order the directories are walked.
-rwxr-xr-xpep8.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index d337248..2131d9e 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1036,7 +1036,8 @@ def input_dir(dirname, runner=None):
if options.verbose:
print('directory ' + root)
options.counters['directories'] += 1
- for subdir in sorted(dirs):
+ dirs.sort()
+ for subdir in dirs[:]:
if excluded(subdir):
dirs.remove(subdir)
files.sort()