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 Patrick Foley, ezio.melotti, mrabarnett, r.david.murray, serhiy.storchaka
Date 2017-04-22.04:49:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492836562.88.0.596549701488.issue30133@psf.upfronthosting.co.za>
In-reply-to
Content
re.escape() shouldn't be used for a replacement template. You need just double backslashes when escape a literal string for a replacement template: s.replace('\\', '\\\\'). This should be documented if still is not documented.
History
Date User Action Args
2017-04-22 04:49:22serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, r.david.murray, Patrick Foley
2017-04-22 04:49:22serhiy.storchakasetmessageid: <1492836562.88.0.596549701488.issue30133@psf.upfronthosting.co.za>
2017-04-22 04:49:22serhiy.storchakalinkissue30133 messages
2017-04-22 04:49:22serhiy.storchakacreate