From 2100da9dcdba7a8bc18f6180fd7e61640319b48a Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Sat, 6 Oct 2012 18:40:58 -0300 Subject: Ensure we ignore __pycache__ PEP 3174 dirs in a few more places. --- django/core/management/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/core') diff --git a/django/core/management/templates.py b/django/core/management/templates.py index aa65593e9c..d34a0deb7e 100644 --- a/django/core/management/templates.py +++ b/django/core/management/templates.py @@ -138,7 +138,7 @@ class TemplateCommand(BaseCommand): os.mkdir(target_dir) for dirname in dirs[:]: - if dirname.startswith('.'): + if dirname.startswith('.') or dirname == '__pycache__': dirs.remove(dirname) for filename in files: -- cgit v1.3