Commit 5dbc07a0 by willmcgugan@gmail.com

Fixed backref exception

parent ee47991d
...@@ -60,7 +60,7 @@ def normpath(path): ...@@ -60,7 +60,7 @@ def normpath(path):
# Imported here because errors imports this module (path), # Imported here because errors imports this module (path),
# causing a circular import. # causing a circular import.
from fs.errors import BackReferenceError from fs.errors import BackReferenceError
BackReferenceError('Too many backrefs in \'%s\'' % path) raise BackReferenceError('Too many backrefs in \'%s\'' % path)
if path[0] == '/': if path[0] == '/':
return '/%s' % '/'.join(components) return '/%s' % '/'.join(components)
return '/'.join(components) return '/'.join(components)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment