diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-07-26 08:47:46 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-07-26 08:47:46 +0000 |
| commit | d99b86d6c1287029f45bc043c2e004e5dc1bb9af (patch) | |
| tree | 89e3916e2c3121938b633b6614c8346efb8c484a | |
| parent | 6b80640fd7184352998414b33caf7b8f8671cb30 (diff) | |
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
| -rw-r--r-- | django/contrib/staticfiles/management/commands/collectstatic.py | 5 |
1 files 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'] |
