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 thezulk
Recipients a.badger, ajaksu2, ezio.melotti, janssen, orsenthil, thezulk
Date 2013-02-23.17:58:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361642300.59.0.53828441209.issue3991@psf.upfronthosting.co.za>
In-reply-to
Content
This is a patch against 3.2 adding urllib.parse.quote_uri

It splits the URI in 5 parts (protocol, authentication, hostname, port and path) then runs urllib.parse.quote on the path and encodes the hostname to punycode if it's not in ascii.

It's not perfect, but should be usable in most cases.
I created some test cases aswell.
History
Date User Action Args
2013-02-23 17:58:20thezulksetrecipients: + thezulk, janssen, orsenthil, ajaksu2, ezio.melotti, a.badger
2013-02-23 17:58:20thezulksetmessageid: <1361642300.59.0.53828441209.issue3991@psf.upfronthosting.co.za>
2013-02-23 17:58:20thezulklinkissue3991 messages
2013-02-23 17:58:20thezulkcreate