Martin Panter added the comment:

The patch looks sufficient to fix the problem, though I do like Serhiy’s 
suggestions.

For the record, because I was curious: Function codecs.escape_encode() is not 
documented, and barely tested. It was used for the documented “string_escape” 
codec in Python 2, but this codec was removed for Python 3 in revision 
bc90fc9b70b7. The function was apparently added to support pickling, but I 
don’t see any evidence that it was ever used. Only the decode counterpart was 
used. I wonder if the encode function could be removed at some point.

----------
nosy: +martin.panter

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

Reply via email to