summaryrefslogtreecommitdiffstats
path: root/Lib/os2emxpath.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-13 10:02:05 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-13 10:02:05 (GMT)
commit2bd8b22b6de76851a7e36dc4a92d20930335ff57 (patch)
tree648a3e23f9a7d001b061930d3d07ef772de5477f /Lib/os2emxpath.py
parent4068b01cb55a66efca605d64b6e27d9fd7cebd3e (diff)
downloadcpython-2bd8b22b6de76851a7e36dc4a92d20930335ff57.zip
cpython-2bd8b22b6de76851a7e36dc4a92d20930335ff57.tar.gz
cpython-2bd8b22b6de76851a7e36dc4a92d20930335ff57.tar.bz2
Issue #21840: Fixed expanding unicode variables of form $var in
posixpath.expandvars(). Fixed all os.path implementations on unicode-disabled builds.
Diffstat (limited to 'Lib/os2emxpath.py')
-rw-r--r--Lib/os2emxpath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/os2emxpath.py b/Lib/os2emxpath.py
index 1bed51d..0b32d63 100644
--- a/Lib/os2emxpath.py
+++ b/Lib/os2emxpath.py
@@ -8,6 +8,7 @@ module as os.path.
import os
import stat
from genericpath import *
+from genericpath import _unicode
from ntpath import (expanduser, expandvars, isabs, islink, splitdrive,
splitext, split, walk)
@@ -146,7 +147,7 @@ def normpath(path):
def abspath(path):
"""Return the absolute version of a path"""
if not isabs(path):
- if isinstance(path, unicode):
+ if isinstance(path, _unicode):
cwd = os.getcwdu()
else:
cwd = os.getcwd()