commit | ad8c5ca4e7e274163447a33615e02edf1d64d87a | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Mon Mar 08 14:44:41 2010 +0000 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Mon Mar 08 14:44:41 2010 +0000 |
tree | 1439e407aeb08cf197b43ede738dedd1af709a01 | |
parent | 998171f0d72b270bd578ee9d6fc4937f0cc9776b [diff] [blame] |
Fix ntpath abspath to deal with bytes.
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 @@ path = _getfullpathname(path) except WindowsError: pass # Bad path - return unchanged. + elif isinstance(path, bytes): + path = os.getcwdb() else: path = os.getcwd() return normpath(path)