From 1b87ae0c910e4bcf652bd45a2c8c62ff11606b47 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 25 Mar 2015 16:40:15 +0200 Subject: Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. --- Lib/ntpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/ntpath.py') diff --git a/Lib/ntpath.py b/Lib/ntpath.py index af3fb8746a..992970ab1d 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: -- cgit v1.2.1