Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11621 - don't copy .pyo and .py.class files from example app/p…

…roject

Thanks fwierzbicki, Steve Milner


git-svn-id: http://code.djangoproject.com/svn/django/trunk@11483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 95393aedc989882190d7f3f4c7afee8e4dc604d3 1 parent 4b82421
Luke Plant authored September 10, 2009

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/core/management/base.py
4  django/core/management/base.py
@@ -398,7 +398,9 @@ def copy_helper(style, app_or_project, name, directory, other_name=''):
398 398
             if subdir.startswith('.'):
399 399
                 del subdirs[i]
400 400
         for f in files:
401  
-            if f.endswith('.pyc'):
  401
+            if not f.endswith('.py'):
  402
+                # Ignore .pyc, .pyo, .py.class etc, as they cause various
  403
+                # breakages.
402 404
                 continue
403 405
             path_old = os.path.join(d, f)
404 406
             path_new = os.path.join(top_dir, relative_dir, f.replace('%s_name' % app_or_project, name))

0 notes on commit 95393ae

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