cpython: dc30111a5d7e (original) (raw)
Mercurial > cpython
changeset 77993:dc30111a5d7e
issue 14826 - Address the buildbot failure quote of url is the required change ( explanation msg164973) [#14826]
Senthil Kumaran senthil@uthcode.com | |
---|---|
date | Sun, 08 Jul 2012 02:16:08 -0700 |
parents | 163b6d6036ed(current diff)ee1828dc3bf6(diff) |
children | 8c877ad00bc4 |
files | Lib/urllib/request.py Misc/NEWS |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-)[+] [-] Lib/urllib/request.py 2 Misc/NEWS 4 |
line wrap: on
line diff
--- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -263,7 +263,7 @@ class Request: origin_req_host=None, unverifiable=False, method=None): # unwrap('URL:type://host/path') --> 'type://host/path'
self.full_url = unwrap(to_bytes(url))[](#l1.7)
self.full_url = unwrap(url)[](#l1.8) self.full_url = quote(self.full_url, safe="%/:=&?~#+!$,;'@()*[]|")[](#l1.9) self.full_url, self.fragment = splittag(self.full_url)[](#l1.10) self.data = data[](#l1.11)
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -23,7 +23,7 @@ Core and Builtins Library ------- -- Issue #14826: Quote urls in urllib.request.Request identically to how they +- Issue #14826: Quote urls in urllib.request.Request similar to how they are quoted by urllib.request.URLopener. Allows urls to spaces in them to work transparently with urllib.request.urlopen(...). Patch contributed by Stephen Thorne. @@ -173,7 +173,7 @@ Library