commit | 53b542fe30467aab7b8e396a33b1466b3d70e06a | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Wed Mar 25 16:39:58 2015 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Wed Mar 25 16:39:58 2015 +0200 |
tree | bdc3b677cd30a14212cc2cb8bf64a999ee5c551e | |
parent | f95a57f9a19a4e593e87f34a5358372d5b6d08e8 [diff] [blame] |
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 11e4470..58951b9 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py
@@ -351,7 +351,7 @@ index = path.index('\'') res = res + '\'' + path[:index + 1] except ValueError: - res = res + path + res = res + c + path index = pathlen - 1 elif c == '%': # variable or '%' if path[index + 1:index + 2] == '%':