Author: jezdez
Date: 2011-07-26 01:47:46 -0700 (Tue, 26 Jul 2011)
New Revision: 16553

Modified:
   django/trunk/django/contrib/staticfiles/management/commands/collectstatic.py
Log:
Fixed #16518 -- Fixed collectstatic management command to run on Jython. 
Thanks, Josh Smeaton.

Modified: 
django/trunk/django/contrib/staticfiles/management/commands/collectstatic.py
===================================================================
--- 
django/trunk/django/contrib/staticfiles/management/commands/collectstatic.py    
    2011-07-26 08:27:23 UTC (rev 16552)
+++ 
django/trunk/django/contrib/staticfiles/management/commands/collectstatic.py    
    2011-07-26 08:47:46 UTC (rev 16553)
@@ -50,8 +50,9 @@
             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']

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to