From d99b86d6c1287029f45bc043c2e004e5dc1bb9af Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Tue, 26 Jul 2011 08:47:46 +0000 Subject: [PATCH] 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 --- .../contrib/staticfiles/management/commands/collectstatic.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py index 341537ffa7..dd597ada07 100644 --- a/django/contrib/staticfiles/management/commands/collectstatic.py +++ b/django/contrib/staticfiles/management/commands/collectstatic.py @@ -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']