Andreas Åkerlund added the comment:

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.

----------
nosy: +thezulk
Added file: http://bugs.python.org/file29194/issue3991.diff

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

Reply via email to