commit | 4cc80ca921b4f6bce11bd7eec8bc6b561aa9f524 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Sat Feb 20 08:09:39 2010 +0000 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Sat Feb 20 08:09:39 2010 +0000 |
tree | 9951e02d8dec6e305ab5fa184b93c9d0e534eea5 | |
parent | 61afd2694bf6bff8c65a392aaf27c575d92b7eb9 [diff] [blame] |
#3426: os.path.abspath now returns unicode when its arg is unicode.
diff --git a/Lib/macpath.py b/Lib/macpath.py index 14e49a3..15714c6 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py
@@ -186,7 +186,11 @@ def abspath(path): """Return an absolute path.""" if not isabs(path): - path = join(os.getcwd(), path) + if isinstance(path, unicode): + cwd = os.getcwdu() + else: + cwd = os.getcwd() + path = join(cwd, path) return normpath(path) # realpath is a no-op on systems without islink support