summaryrefslogtreecommitdiff
path: root/django/utils/_os.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/_os.py')
-rw-r--r--django/utils/_os.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/utils/_os.py b/django/utils/_os.py
index e9e1bcbfaf..5cd8c566a8 100644
--- a/django/utils/_os.py
+++ b/django/utils/_os.py
@@ -22,7 +22,8 @@ def safe_join(base, *paths):
# a) The next character is the path separator (to prevent conditions like
# safe_join("/dir", "/../d"))
# 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:\\")
+ # 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)