revert the changes done in d931a3b64fd6 - buildbot failure.
The fix for issue14826 might need to address toBytes and test_url_encoding in
test_cookielib.py before it is brought back in.
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index 944f622..ebf5811 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -196,8 +196,7 @@
def __init__(self, url, data=None, headers={},
origin_req_host=None, unverifiable=False):
# unwrap('<URL:type://host/path>') --> 'type://host/path'
- self.__original = unwrap(toBytes(url))
- self.__original = quote(self.__original, safe="%/:=&?~#+!$,;'@()*[]|")
+ self.__original = unwrap(url)
self.__original, self.__fragment = splittag(self.__original)
self.type = None
# self.__r_type is what's left after doing the splittype