This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Samuel Warfield, ezio.melotti, mrabarnett, serhiy.storchaka
Date 2019-02-18.14:53:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550501616.85.0.423805060536.issue35072@roundup.psfhosted.org>
In-reply-to
Content
chr(92) is a single backspace character ('\\'). Since backspace has special meaning in the replacement string, it should be escaped.

    re.sub(r'\\\\', r'\\', stringy_thingy)
History
Date User Action Args
2019-02-18 14:53:36serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, Samuel Warfield
2019-02-18 14:53:36serhiy.storchakasetmessageid: <1550501616.85.0.423805060536.issue35072@roundup.psfhosted.org>
2019-02-18 14:53:36serhiy.storchakalinkissue35072 messages
2019-02-18 14:53:36serhiy.storchakacreate