From ffadbb7ee7ff770d818607f6c03ef6c37a177a6f Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 13 Feb 2014 10:45:14 +0200 Subject: [PATCH] Fixed typo in previous commit (issue #6815). --- Lib/posixpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 9c11d8a32b6..fd63f97fe93 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: