Ticket #16518: collectstatic-jython-fix.diff

File collectstatic-jython-fix.diff, 724 bytes (added by Josh Smeaton <josh.smeaton@…>, 13 years ago)

patch

  • tags/releases/1.3/django/contrib/staticfiles/management/commands/collectstatic.py

     
    4646        else:
    4747            self.local = True
    4848        # Use ints for file times (ticket #14665)
    49         os.stat_float_times(False)
     49        if hasattr(os, 'stat_float_times'): # jython 2.5.2 does not support stat_float_times
     50            os.stat_float_times(False)
    5051
    5152    def handle_noargs(self, **options):
    5253        symlink = options['link']
Back to Top