Corrected exception type in safe_join()'s docstring.

This commit is contained in:
David Sanders 2023-04-20 13:44:01 +10:00 committed by GitHub
parent 01ae9d4ca9
commit 2a57785363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)