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 martin.panter
Recipients martin.panter, xiang.zhang
Date 2016-03-18.22:32:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458340337.14.0.954654033689.issue26585@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the tests. I left a couple comments.

About encoding quotes: Personally I don’t see much value unless you are encoding an attribute value, in which case I would prefer to use xml.sax.saxutils.quoteattr(). Encoded quotes would only become useful if the “error_message_format” attribute was modified.

A more practical downside is that if “error_content_type” is set to say text/plain, we are adding two somewhat common characters that will get messed up. E.g. the “explain” string for 429 Too Many Requests will include the double-quoted &quot;rate limiting&quot;. And an apostrophe could easily be given in a custom error message, e.g. “Can&#x27;t write a clean error message”.
History
Date User Action Args
2016-03-18 22:32:17martin.pantersetrecipients: + martin.panter, xiang.zhang
2016-03-18 22:32:17martin.pantersetmessageid: <1458340337.14.0.954654033689.issue26585@psf.upfronthosting.co.za>
2016-03-18 22:32:17martin.panterlinkissue26585 messages
2016-03-18 22:32:16martin.pantercreate