classification
Title: expandvars removes single quotes ( ' )
Type: behavior Stage: resolved
Components: Library (Lib), Windows Versions: Python 3.5, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: manuel_v, python-dev, r.david.murray, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2015-03-23 01:35 by manuel_v, last changed 2015-03-25 14:44 by serhiy.storchaka. This issue is now closed.

Files
File name Uploaded Description Edit
issue23742.patch serhiy.storchaka, 2015-03-23 07:28 review
Messages (4)
msg238968 - (view) Author: Manuel Vögele (manuel_v) Date: 2015-03-23 01:35
When executing

os.path.expandvars("%SystemDrive%\\Foo'Bar")

the function erases the ' returning

'C:\\FooBar'

using Python 3.4.3 on Windows 7
msg238971 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-03-23 02:07
It apparently only loses unbalanced single quotes.
msg238984 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-23 07:28
Here is a patch.
msg239258 - (view) Author: Roundup Robot (python-dev) Date: 2015-03-25 14:42
New changeset 9f4d2bdced9c by Serhiy Storchaka in branch '2.7':
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
https://hg.python.org/cpython/rev/9f4d2bdced9c

New changeset 613c4bd1c29c by Serhiy Storchaka in branch '3.4':
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
https://hg.python.org/cpython/rev/613c4bd1c29c

New changeset 16e6515c9476 by Serhiy Storchaka in branch 'default':
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
https://hg.python.org/cpython/rev/16e6515c9476
History
Date User Action Args
2015-03-25 14:44:26serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2015-03-25 14:42:00python-devsetnosy: + python-dev
messages: + msg239258
2015-03-23 07:28:58serhiy.storchakasetfiles: + issue23742.patch

assignee: serhiy.storchaka
components: + Library (Lib)
versions: + Python 2.7
keywords: + patch
messages: + msg238984
stage: needs patch -> patch review
2015-03-23 02:07:22r.david.murraysetversions: + Python 3.5
nosy: + r.david.murray, tim.golden, zach.ware, steve.dower

messages: + msg238971

components: + Windows, - Library (Lib)
stage: needs patch
2015-03-23 01:35:37manuel_vcreate