diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2015-09-18 19:31:46 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2015-09-18 19:31:46 -0700 |
commit | 03576db40986156de09ce1ff51092fa18efe79d2 (patch) | |
tree | c0659c2ad1e70b839875169ed68472ed808d8aa7 | |
parent | 98585116dcd8342104e1046a97de8e4f705768e5 (diff) | |
download | isort-feature/fix-issue-337.tar.gz |
Fix isort skipping codefeature/fix-issue-337
-rwxr-xr-x | isort/main.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/isort/main.py b/isort/main.py index 941442de..2225385a 100755 --- a/isort/main.py +++ b/isort/main.py @@ -66,11 +66,10 @@ def iter_source_code(paths, config, skipped): continue for dirpath, dirnames, filenames in os.walk(path, topdown=True): - for dirname in dirnames: + for dirname in list(dirnames): if should_skip(dirname, config): skipped.append(dirname) dirnames.remove(dirname) - dirnames[:] = [directory for directory in dirnames if not should_skip(directory, config)] for filename in filenames: if filename.endswith('.py'): if should_skip(filename, config): |