1
0
mirror of https://github.com/django/django.git synced 2024-12-25 02:26:12 +00:00

Fixed #16518 -- Fixed collectstatic management command to run on Jython. Thanks, Josh Smeaton.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-07-26 08:47:46 +00:00
parent 6b80640fd7
commit d99b86d6c1

View File

@ -50,8 +50,9 @@ class Command(NoArgsCommand):
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']