Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
1e8f893b
Commit
1e8f893b
authored
Apr 20, 2012
by
btimby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't derive BackReferenceError from FSError. See comments on r773.
parent
bc88a85a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
fs/errors.py
+1
-2
fs/path.py
+1
-1
No files found.
fs/errors.py
View file @
1e8f893b
...
@@ -188,9 +188,8 @@ class NoMMapError(ResourceError):
...
@@ -188,9 +188,8 @@ class NoMMapError(ResourceError):
default_message
=
"Can't get mmap for
%(path)
s"
default_message
=
"Can't get mmap for
%(path)
s"
class
BackReferenceError
(
FSError
,
ValueError
):
class
BackReferenceError
(
ValueError
):
"""Exception raised when too many backrefs exist in a path (ex: '/..', '/docs/../..')."""
"""Exception raised when too many backrefs exist in a path (ex: '/..', '/docs/../..')."""
default_message
=
"Too many backrefs in '
%(path)
s'"
def
convert_fs_errors
(
func
):
def
convert_fs_errors
(
func
):
...
...
fs/path.py
View file @
1e8f893b
...
@@ -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
(
details
=
{
'path'
:
path
}
)
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment