Ian Lewis committed 9f918f2

Changed except statement in hashbackend to support python 2.5

Comments (0)

Files changed (1)


         # 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('\\', '/'))