issue 14826 - Address the buildbot failure ( explanation msg164973)
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 8 Jul 2012 09:08:48 +0000 (02:08 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Sun, 8 Jul 2012 09:08:48 +0000 (02:08 -0700)
Lib/urllib/request.py
Misc/NEWS

index 796b700f99b663c7be688a7407b045583812cdc0..c77697c57689e3fc3d6ff5a4119777863ab8919d 100644 (file)
@@ -180,7 +180,7 @@ class Request:
     def __init__(self, url, data=None, headers={},
                  origin_req_host=None, unverifiable=False):
         # unwrap('<URL:type://host/path>') --> '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
index 18d03efa494c2932a373a937ba8aff5ebd06a1d5..5c05e0257c8126f643884e7aba9a029e847b9542 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -87,8 +87,8 @@ Core and Builtins
 Library
 -------
 
-- Issue #14826: Quote urls in urllib.request.Request identically to how they
-  are quoted by urllib.request.URLopener. Allows urls to spaces in them to work
+- 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.