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 panzi
Recipients docs@python, orsenthil, panzi
Date 2012-11-16.03:45:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353037511.11.0.221623647517.issue16423@psf.upfronthosting.co.za>
In-reply-to
Content
New patch. Instead of adding the data URL support to the doc as a recipe I added it to urllib.request directly. I think this is better and justified, because the old legacy URLopener had (some kind) of support for data URLs.

OT: I think that the legacy URLopener has bugs. It only unquotes the data if it's base64 encoded, but it should be unquoted in any case. Also it returns a StringIO and decodes the content as latin-1. This is wrong, the content is a binary string. It could be text encoded in any kind of charset or not text at all (e.g. an image).
History
Date User Action Args
2012-11-16 03:45:11panzisetrecipients: + panzi, orsenthil, docs@python
2012-11-16 03:45:11panzisetmessageid: <1353037511.11.0.221623647517.issue16423@psf.upfronthosting.co.za>
2012-11-16 03:45:11panzilinkissue16423 messages
2012-11-16 03:45:10panzicreate