Use os.path.normpath instead of normalize_sep.

master
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
1 changed files with 1 additions and 1 deletions

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