Serhiy Storchaka added the comment:

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.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30133>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to