diff options
author | Ramiro Morales <cramm0@gmail.com> | 2013-02-14 20:29:21 -0300 |
---|---|---|
committer | Ramiro Morales <cramm0@gmail.com> | 2013-02-14 20:29:21 -0300 |
commit | f179a5198e05e1be8ba8be87c1f0e1a8924cf005 (patch) | |
tree | 55d10963c5dc35fcbe52d65d5b066090c8e410aa /setup.py | |
parent | 668d0b8d499c45ef7d449b5e56f0adc97660d417 (diff) | |
download | django-f179a5198e05e1be8ba8be87c1f0e1a8924cf005.tar.gz |
Fix filtering during collection of paths in setup.py
Thanks Marek Brzóska for the report.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -68,9 +68,7 @@ django_dir = 'django' 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 '__init__.py' in filenames: packages.append('.'.join(fullsplit(dirpath))) elif filenames: |