Message165439
| Author |
samwyse |
| Recipients |
Stephen.Day, cvrebert, eric.araujo, ezio.melotti, jin, maker, orsenthil, samwyse |
| Date |
2012年07月14日.10:52:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1342263136.52.0.34303332808.issue13866@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Since no one else seems willing to do it, here's a patch that adds a 'quote_via' keyword parameter to the urlencode function.
>>> import urllib.parse
>>> query={"foo": "+ "}
>>> urllib.parse.urlencode(query)
'foo=%2B+'
>>> urllib.parse.urlencode(query, quote_via=urllib.parse.quote)
'foo=%2B%20' |
|