Add special case for string

This commit is contained in:
MartyLake 2019-07-24 10:11:32 +02:00
parent 7ee11b0f1a
commit 819f03f0e0

View file

@ -227,6 +227,8 @@ def path_as_posix(path):
"""Return the string representation of the path with forward (/)
slashes.
"""
if isinstance(path, str):
return path.replace('\\', '/')
return path.replace(b'\\', b'/')