Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jannis Leidel authored July 26, 2011
5  django/contrib/staticfiles/management/commands/collectstatic.py
@@ -50,8 +50,9 @@ def __init__(self, *args, **kwargs):
50 50
             self.local = False
51 51
         else:
52 52
             self.local = True
53  
-        # Use ints for file times (ticket #14665)
54  
-        os.stat_float_times(False)
  53
+        # Use ints for file times (ticket #14665), if supported
  54
+        if hasattr(os, 'stat_float_times'):
  55
+            os.stat_float_times(False)
55 56
 
56 57
     def handle_noargs(self, **options):
57 58
         self.clear = options['clear']

0 notes on commit d99b86d

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