mirror of
https://github.com/django/django.git
synced 2025-01-08 17:37:20 +00:00
Corrected exception type in safe_join()'s docstring.
This commit is contained in:
parent
01ae9d4ca9
commit
2a57785363
@ -11,8 +11,8 @@ def safe_join(base, *paths):
|
||||
Join one or more path components to the base path component intelligently.
|
||||
Return a normalized, absolute version of the final path.
|
||||
|
||||
Raise ValueError if the final path isn't located inside of the base path
|
||||
component.
|
||||
Raise SuspiciousFileOperation if the final path isn't located inside of the
|
||||
base path component.
|
||||
"""
|
||||
final_path = abspath(join(base, *paths))
|
||||
base_path = abspath(base)
|
||||
|
Loading…
Reference in New Issue
Block a user