mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fixed typo in previous commit (issue #6815).
This commit is contained in:
parent
dbb101909d
commit
ffadbb7ee7
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue