Commit ffadbb7e authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed typo in previous commit (issue #6815).

parent dbb10190
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment