diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-25 14:41:15 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-25 14:41:15 (GMT) |
commit | b20f905f6d52d6839ca2e5b3fd069cf5ccffc429 (patch) | |
tree | f0e1f25cbf2819fd32d7ddeac33b8498f5defc4e /Lib/ntpath.py | |
parent | 764fc9bfac84d564c526628974a9bd5edfa5bcab (diff) | |
parent | 1b87ae0c910e4bcf652bd45a2c8c62ff11606b47 (diff) | |
download | cpython-b20f905f6d52d6839ca2e5b3fd069cf5ccffc429.zip cpython-b20f905f6d52d6839ca2e5b3fd069cf5ccffc429.tar.gz cpython-b20f905f6d52d6839ca2e5b3fd069cf5ccffc429.tar.bz2 |
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r-- | Lib/ntpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index ee1a215..6732aa2 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -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: |