(original) (raw)

changeset: 77993:dc30111a5d7e parent: 77991:163b6d6036ed parent: 77992:ee1828dc3bf6 user: Senthil Kumaran senthil@uthcode.com date: Sun Jul 08 02:16:08 2012 -0700 files: Lib/urllib/request.py Misc/NEWS description: issue 14826 - Address the buildbot failure quote of url is the required change ( explanation msg164973) diff -r 163b6d6036ed -r dc30111a5d7e Lib/urllib/request.py --- a/Lib/urllib/request.py Sun Jul 08 01:33:19 2012 -0700 +++ b/Lib/urllib/request.py Sun Jul 08 02:16:08 2012 -0700 @@ -263,7 +263,7 @@ origin_req_host=None, unverifiable=False, method=None): # unwrap('') --> 'type://host/path' - self.full_url = unwrap(to_bytes(url)) + self.full_url = unwrap(url) self.full_url = quote(self.full_url, safe="%/:=&?~#+!$,;'@()*[]|") self.full_url, self.fragment = splittag(self.full_url) self.data = data diff -r 163b6d6036ed -r dc30111a5d7e Misc/NEWS --- a/Misc/NEWS Sun Jul 08 01:33:19 2012 -0700 +++ b/Misc/NEWS Sun Jul 08 02:16:08 2012 -0700 @@ -23,7 +23,7 @@ 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 @@ - Issue #15176: Clarified behavior, documentation, and implementation of os.listdir(). - + - Issue #15061: Re-implemented hmac.compare_digest() in C to prevent further timing analysis and to support all buffer protocol aware objects as well as ASCII only str instances safely./senthil@uthcode.com