Message182785
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. |
|
Date |
User |
Action |
Args |
2013-02-23 17:58:20 | thezulk | set | recipients:
+ thezulk, janssen, orsenthil, ajaksu2, ezio.melotti, a.badger |
2013-02-23 17:58:20 | thezulk | set | messageid: <1361642300.59.0.53828441209.issue3991@psf.upfronthosting.co.za> |
2013-02-23 17:58:20 | thezulk | link | issue3991 messages |
2013-02-23 17:58:20 | thezulk | create | |
|