Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25bfb52

Browse files
committed
issue 14826 - Address the buildbot failure quote of url is the required change ( explanation msg164973)
2 parents 19a9af3 + 45ce4dc commit 25bfb52

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/urllib/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def __init__(self, url, data=None, headers={},
263263
origin_req_host=None, unverifiable=False,
264264
method=None):
265265
# unwrap('<URL:type://host/path>') --> 'type://host/path'
266-
self.full_url = unwrap(to_bytes(url))
266+
self.full_url = unwrap(url)
267267
self.full_url = quote(self.full_url, safe="%/:=&?~#+!$,;'@()*[]|")
268268
self.full_url, self.fragment = splittag(self.full_url)
269269
self.data = data

Misc/NEWS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Core and Builtins
2323
Library
2424
-------
2525

26-
- Issue #14826: Quote urls in urllib.request.Request identically to how they
26+
- Issue #14826: Quote urls in urllib.request.Request similar to how they
2727
are quoted by urllib.request.URLopener. Allows urls to spaces in them to work
2828
transparently with urllib.request.urlopen(...). Patch contributed by Stephen
2929
Thorne.
@@ -173,7 +173,7 @@ Library
173173

174174
- Issue #15176: Clarified behavior, documentation, and implementation
175175
of os.listdir().
176-
176+
177177
- Issue #15061: Re-implemented hmac.compare_digest() in C to prevent further
178178
timing analysis and to support all buffer protocol aware objects as well as
179179
ASCII only str instances safely.

0 commit comments

Comments
 (0)