diff options
author | Hugo <hugo.sanz@indizen.com> | 2022-10-13 13:05:32 +0200 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2022-10-13 08:17:38 -0700 |
commit | af15163e10666ee5719827e3fe1400ade17a3e56 (patch) | |
tree | 48d12f678cb47dfcff9b57250497140608b28f8d /src/werkzeug/utils.py | |
parent | 7facafce567244a5a889dab1002bf104149e6d15 (diff) | |
download | werkzeug-af15163e10666ee5719827e3fe1400ade17a3e56.tar.gz |
replace os.path.sep with os.sep
Diffstat (limited to 'src/werkzeug/utils.py')
-rw-r--r-- | src/werkzeug/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/werkzeug/utils.py b/src/werkzeug/utils.py index 672e6e5a..1a5df63a 100644 --- a/src/werkzeug/utils.py +++ b/src/werkzeug/utils.py @@ -221,7 +221,7 @@ def secure_filename(filename: str) -> str: filename = unicodedata.normalize("NFKD", filename) filename = filename.encode("ascii", "ignore").decode("ascii") - for sep in os.path.sep, os.path.altsep: + for sep in os.sep, os.path.altsep: if sep: filename = filename.replace(sep, " ") filename = str(_filename_ascii_strip_re.sub("", "_".join(filename.split()))).strip( |