summaryrefslogtreecommitdiffstats
path: root/Lib/ntpath.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-25 14:40:15 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-25 14:40:15 (GMT)
commit1b87ae0c910e4bcf652bd45a2c8c62ff11606b47 (patch)
treefe36926683cf8b549dd4251f00ef5f645e715c9c /Lib/ntpath.py
parent81f241ab2e19db9e421a300c00f9fb1c4e0003df (diff)
downloadcpython-1b87ae0c910e4bcf652bd45a2c8c62ff11606b47.zip
cpython-1b87ae0c910e4bcf652bd45a2c8c62ff11606b47.tar.gz
cpython-1b87ae0c910e4bcf652bd45a2c8c62ff11606b47.tar.bz2
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r--Lib/ntpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index af3fb87..992970a 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -400,7 +400,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: