mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Fix the buildbot failure - msg164973
This commit is contained in:
parent
01fe5fa8ea
commit
dc43adbfc2
2 changed files with 4 additions and 5 deletions
|
@ -196,7 +196,7 @@ class Request:
|
||||||
def __init__(self, url, data=None, headers={},
|
def __init__(self, url, data=None, headers={},
|
||||||
origin_req_host=None, unverifiable=False):
|
origin_req_host=None, unverifiable=False):
|
||||||
# unwrap('<URL:type://host/path>') --> 'type://host/path'
|
# 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 = quote(self.__original, safe="%/:=&?~#+!$,;'@()*[]|")
|
||||||
self.__original, self.__fragment = splittag(self.__original)
|
self.__original, self.__fragment = splittag(self.__original)
|
||||||
self.type = None
|
self.type = None
|
||||||
|
|
|
@ -84,10 +84,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
- Issue #14826: Quote urls in urllib2.Request identically to how they
|
- Issue #14826: Quote urls in urllib2.Request similar to how they are quoted by
|
||||||
are quoted by urllib.URLopener. Allows urls to spaces in them to work
|
urllib.URLopener. Allows urls to spaces in them to work transparently with
|
||||||
transparently with urllib.request.urlopen(...). Patch contributed by Stephen
|
urllib.request.urlopen(...). Patch contributed by Stephen Thorne.
|
||||||
Thorne.
|
|
||||||
|
|
||||||
- Issue #15247: FileIO now raises an error when given a file descriptor
|
- Issue #15247: FileIO now raises an error when given a file descriptor
|
||||||
pointing to a directory.
|
pointing to a directory.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue