Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.

This commit is contained in:
Serhiy Storchaka 2015-03-25 16:41:15 +02:00
commit b20f905f6d
3 changed files with 4 additions and 1 deletions

View file

@ -386,7 +386,7 @@ def expandvars(path):
index = path.index(c)
res += c + path[:index + 1]
except ValueError:
res += path
res += c + path
index = pathlen - 1
elif c == percent: # variable or '%'
if path[index + 1:index + 2] == percent: