Fixed typo in previous commit (issue #6815).

This commit is contained in:
Serhiy Storchaka 2014-02-13 10:45:48 +02:00
commit 1392f68e0e
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,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: