utils/fs: use fspath_py35 instead of fspath

This commit is contained in:
Saugat Pachhai
2019-11-19 21:55:01 +05:45
parent f07a70a052
commit 58624e0230
+1 -1
View File
@@ -140,7 +140,7 @@ def path_isin(child, parent):
"""Check if given `child` path is inside `parent`."""
def normalize_path(path):
return os.path.normpath(fspath(path))
return os.path.normpath(fspath_py35(path))
parent = os.path.join(normalize_path(parent), "")
child = normalize_path(child)