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 = unwrap(url)
self.__original = quote(self.__original, safe="%/:=&?~#+!$,;'@()*[]|")
self.__original, self.__fragment = splittag(self.__original)
self.type = None
Library
-------
-- Issue #14826: Quote urls in urllib2.Request identically to how they
- are quoted by urllib.URLopener. Allows urls to spaces in them to work
- transparently with urllib.request.urlopen(...). Patch contributed by Stephen
- Thorne.
+- Issue #14826: Quote urls in urllib2.Request similar to how they are quoted by
+ urllib.URLopener. Allows urls to spaces in them to work transparently with
+ urllib.request.urlopen(...). Patch contributed by Stephen Thorne.
- Issue #15247: FileIO now raises an error when given a file descriptor
pointing to a directory.