summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-13 08:45:14 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-13 08:45:14 (GMT)
commitffadbb7ee7ff770d818607f6c03ef6c37a177a6f (patch)
treee12cbf3889d055b0899ff61d3ed8a00975d57a91
parentdbb101909d4bcc7cfe7a8063bb4ac4ec879ecac8 (diff)
downloadcpython-ffadbb7ee7ff770d818607f6c03ef6c37a177a6f.zip
cpython-ffadbb7ee7ff770d818607f6c03ef6c37a177a6f.tar.gz
cpython-ffadbb7ee7ff770d818607f6c03ef6c37a177a6f.tar.bz2
Fixed typo in previous commit (issue #6815).
-rw-r--r--Lib/posixpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 9c11d8a..fd63f97 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -322,7 +322,7 @@ def expandvars(path):
name = name[1:-1]
try:
if environ is None:
- value = os.fsencode(os.environ[os.fsdecode(var)])
+ value = os.fsencode(os.environ[os.fsdecode(name)])
else:
value = environ[name]
except KeyError: