From ad8c5ca4e7e274163447a33615e02edf1d64d87a Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 8 Mar 2010 14:44:41 +0000 Subject: Fix ntpath abspath to deal with bytes. --- Lib/ntpath.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/ntpath.py b/Lib/ntpath.py index d16b664..8d50294 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -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) -- cgit v0.12