mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Fix merge glitch that let test_urllib fail.
This commit is contained in:
parent
95ba469626
commit
e3777b4e92
1 changed files with 2 additions and 1 deletions
|
|
@ -360,7 +360,8 @@ class URLopener:
|
|||
# According to RFC 2616, "2xx" code indicates that the client's
|
||||
# request was successfully received, understood, and accepted.
|
||||
if (200 <= response.status < 300):
|
||||
return addinfourl(response.fp, response.msg, "http:" + url)
|
||||
return addinfourl(response.fp, response.msg, "http:" + url,
|
||||
response.status)
|
||||
else:
|
||||
return self.http_error(
|
||||
url, response.fp,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue