Use os.path.normpath instead of normalize_sep.
This commit is contained in:
parent
f1b88b49fe
commit
e995bd502d
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ def basename_from_url(url):
|
||||||
def is_special_file(file):
|
def is_special_file(file):
|
||||||
if isinstance(file, pathclass.Path):
|
if isinstance(file, pathclass.Path):
|
||||||
return False
|
return False
|
||||||
file = pathclass.normalize_sep(file)
|
file = os.path.normpath(file)
|
||||||
file = file.rsplit(os.sep)[-1]
|
file = file.rsplit(os.sep)[-1]
|
||||||
file = os.path.normcase(file)
|
file = os.path.normcase(file)
|
||||||
return file in SPECIAL_FILENAMES
|
return file in SPECIAL_FILENAMES
|
||||||
|
|
Loading…
Reference in a new issue