Remove path.rstrip(sep), os.path.normpath takes care of it.

This commit is contained in:
Ethan Dalool 2018-01-09 20:36:07 -08:00
parent 66c48d4ab0
commit 93d42afeca

View file

@ -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():