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 tylerjohnhughes
Recipients tylerjohnhughes
Date 2016-06-30.23:28:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467329284.42.0.570425192888.issue27429@psf.upfronthosting.co.za>
In-reply-to
Content
The escape function appears to go through the list in multiple passes, replacing characters as it encounters them on each pass, rather than traversing the source string and replacing matches in the entities dict. This results in invalid escape strings if a replacement value contains one of the replacement entities. I've attached a file to reproduce the behavior.
History
Date User Action Args
2016-06-30 23:28:04tylerjohnhughessetrecipients: + tylerjohnhughes
2016-06-30 23:28:04tylerjohnhughessetmessageid: <1467329284.42.0.570425192888.issue27429@psf.upfronthosting.co.za>
2016-06-30 23:28:04tylerjohnhugheslinkissue27429 messages
2016-06-30 23:28:04tylerjohnhughescreate