Skip to content
Browse files

[1.5.x] Fix filtering during collection of paths in

Thanks Marek Brzóska for the report.

f179a51 from master.
  • Loading branch information...
1 parent 89ce55b commit 1c086df50e76f1fd84e0d90bfb1d0b13468ba13b @ramiro ramiro committed
Showing with 1 addition and 3 deletions.
  1. +1 −3
@@ -68,9 +68,7 @@ def fullsplit(path, result=None):
for dirpath, dirnames, filenames in os.walk(django_dir):
# Ignore PEP 3147 cache dirs and those whose names start with '.'
- for i, dirname in enumerate(dirnames):
- if dirname.startswith('.') or dirname == '__pycache__':
- del dirnames[i]
+ dirnames[:] = [d for d in dirnames if not d.startswith('.') and d != '__pycache__']
if '' in filenames:
elif filenames:

0 comments on commit 1c086df

Please sign in to comment.
Something went wrong with that request. Please try again.