Permalink
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...
1 parent 6b80640 commit d99b86d6c1287029f45bc043c2e004e5dc1bb9af @jezdez jezdez committed Jul 26, 2011
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']

0 comments on commit d99b86d

Please sign in to comment.