Remove path.rstrip(sep), os.path.normpath takes care of it.
This commit is contained in:
parent
66c48d4ab0
commit
93d42afeca
1 changed files with 0 additions and 1 deletions
|
@ -229,7 +229,6 @@ def normalize_sep(path):
|
||||||
for char in ('\\', '/'):
|
for char in ('\\', '/'):
|
||||||
if char != os.sep:
|
if char != os.sep:
|
||||||
path = path.replace(char, os.sep)
|
path = path.replace(char, os.sep)
|
||||||
path = path.rstrip(os.sep)
|
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def system_root():
|
def system_root():
|
||||||
|
|
Loading…
Reference in a new issue