Author: lukeplant
Date: 2010-08-30 06:47:32 -0500 (Mon, 30 Aug 2010)
New Revision: 13668
Modified:
django/trunk/django/core/management/base.py
Log:
Fixed #14145 - undeterministic behavior when project or app template contains
dotdir
Thanks to marbu for report and patch.
Modified: django/trunk/django/core/management/base.py
===================================================================
--- django/trunk/django/core/management/base.py 2010-08-30 10:31:56 UTC (rev
13667)
+++ django/trunk/django/core/management/base.py 2010-08-30 11:47:32 UTC (rev
13668)
@@ -394,9 +394,9 @@
relative_dir = d[len(template_dir)+1:].replace('%s_name' %
app_or_project, name)
if relative_dir:
os.mkdir(os.path.join(top_dir, relative_dir))
- for i, subdir in enumerate(subdirs):
+ for subdir in subdirs[:]:
if subdir.startswith('.'):
- del subdirs[i]
+ subdirs.remove(subdir)
for f in files:
if not f.endswith('.py'):
# Ignore .pyc, .pyo, .py.class etc, as they cause various
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.