Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Thanks Marek Brzóska for the report.

f179a51 from master.
  • Loading branch information...
commit 1c086df50e76f1fd84e0d90bfb1d0b13468ba13b 1 parent 89ce55b
Ramiro Morales authored February 14, 2013

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. 4  setup.py
4  setup.py
@@ -68,9 +68,7 @@ def fullsplit(path, result=None):
68 68
 
69 69
 for dirpath, dirnames, filenames in os.walk(django_dir):
70 70
     # Ignore PEP 3147 cache dirs and those whose names start with '.'
71  
-    for i, dirname in enumerate(dirnames):
72  
-        if dirname.startswith('.') or dirname == '__pycache__':
73  
-            del dirnames[i]
  71
+    dirnames[:] = [d for d in dirnames if not d.startswith('.') and d != '__pycache__']
74 72
     if '__init__.py' in filenames:
75 73
         packages.append('.'.join(fullsplit(dirpath)))
76 74
     elif filenames:

0 notes on commit 1c086df

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