From: Serhiy Storchaka Date: Thu, 13 Feb 2014 08:45:14 +0000 (+0200) Subject: Fixed typo in previous commit (issue #6815). X-Git-Tag: v3.3.5rc1^2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffadbb7ee7ff770d818607f6c03ef6c37a177a6f;p=python Fixed typo in previous commit (issue #6815). --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 9c11d8a32b..fd63f97fe9 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: