mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
Fixed E125 pep8 warnings
This commit is contained in:
committed by
Tim Graham
parent
d1df395f3a
commit
7477a4ffde
@@ -74,8 +74,8 @@ def safe_join(base, *paths):
|
||||
# b) The final path must be the same as the base path.
|
||||
# c) The base path must be the most root path (meaning either "/" or "C:\\")
|
||||
if (not normcase(final_path).startswith(normcase(base_path + sep)) and
|
||||
normcase(final_path) != normcase(base_path) and
|
||||
dirname(normcase(base_path)) != normcase(base_path)):
|
||||
normcase(final_path) != normcase(base_path) and
|
||||
dirname(normcase(base_path)) != normcase(base_path)):
|
||||
raise ValueError('The joined path (%s) is located outside of the base '
|
||||
'path component (%s)' % (final_path, base_path))
|
||||
return final_path
|
||||
|
||||
Reference in New Issue
Block a user