]> granicus.if.org Git - python/commitdiff
Fixed typo in previous commit (issue #6815).
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 13 Feb 2014 08:45:14 +0000 (10:45 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 13 Feb 2014 08:45:14 +0000 (10:45 +0200)
Lib/posixpath.py

index 9c11d8a32b6f12f79353d9225bfb99b2188653f7..fd63f97fe935044f7ce2cdcec9dee8971caf0a76 100644 (file)
@@ -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: