1. pendletongp
  2. django-storages


Ian Lewis  committed 9f918f2

Changed except statement in hashbackend to support python 2.5

  • Participants
  • Parent commits b1c97b5
  • Branches default

Comments (0)

Files changed (1)

File storages/backends/hashpath.py

View file
  • Ignore whitespace
         # Try to create the directory relative to the media root
             os.makedirs(os.path.join(settings.MEDIA_ROOT, dir_name))
-        except OSError as e:
+        except OSError, e:
             if e.errno is not errno.EEXIST:
                 raise e
         name = self._save(name, content)
         # Store filenames with forward slashes, even on Windows
-        return force_unicode(name.replace('\\', '/'))
+        return force_unicode(name.replace('\\', '/'))