Kaydet (Commit) ad8c5ca4 authored tarafından Florent Xicluna's avatar Florent Xicluna

Fix ntpath abspath to deal with bytes.

üst 998171f0
......@@ -561,6 +561,8 @@ else: # use native Windows method on Windows
path = _getfullpathname(path)
except WindowsError:
pass # Bad path - return unchanged.
elif isinstance(path, bytes):
path = os.getcwdb()
else:
path = os.getcwd()
return normpath(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment