Use os.path.normpath instead of normalize_sep.

This commit is contained in:
voussoir 2021-11-18 17:02:32 -08:00
parent f1b88b49fe
commit e995bd502d
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -377,7 +377,7 @@ def basename_from_url(url):
def is_special_file(file):
if isinstance(file, pathclass.Path):
return False
file = pathclass.normalize_sep(file)
file = os.path.normpath(file)
file = file.rsplit(os.sep)[-1]
file = os.path.normcase(file)
return file in SPECIAL_FILENAMES