Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #16518 -- Fixed collectstatic management command to run on Jyth…

…on. Thanks, Josh Smeaton.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d99b86d6c1287029f45bc043c2e004e5dc1bb9af 1 parent 6b80640
@jezdez jezdez authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/contrib/staticfiles/management/commands/collectstatic.py
View
5 django/contrib/staticfiles/management/commands/collectstatic.py
@@ -50,8 +50,9 @@ def __init__(self, *args, **kwargs):
self.local = False
else:
self.local = True
- # Use ints for file times (ticket #14665)
- os.stat_float_times(False)
+ # Use ints for file times (ticket #14665), if supported
+ if hasattr(os, 'stat_float_times'):
+ os.stat_float_times(False)
def handle_noargs(self, **options):
self.clear = options['clear']
Please sign in to comment.
Something went wrong with that request. Please try again.