commit | 19b02d4558515e761755346dd1c119cf6ad55352 | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Mon Mar 08 12:25:35 2010 +0000 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Mon Mar 08 12:25:35 2010 +0000 |
tree | 78c3b81cba24fd47c64dbe924955f442f2debee2 | |
parent | c9c79784cf675819981e54b9c64a9ec114aff994 [diff] |
Fix macpath to deal with bytes
diff --git a/Lib/macpath.py b/Lib/macpath.py index c023646..f58a195 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py
@@ -172,7 +172,11 @@ def abspath(path): """Return an absolute path.""" if not isabs(path): - path = join(os.getcwd(), path) + if isinstance(path, bytes): + cwd = os.getcwdb() + else: + cwd = os.getcwd() + path = join(cwd, path) return normpath(path) # realpath is a no-op on systems without islink support