Browse Source
bpo-12707: deprecate info(), geturl(), getcode() methods in favor of headers, url, and status properties for HTTPResponse and addinfourl (GH-11447)
bpo-12707: deprecate info(), geturl(), getcode() methods in favor of headers, url, and status properties for HTTPResponse and addinfourl (GH-11447)
Co-Authored-By: epicfaace <aramaswamis@gmail.com>pull/16083/head
committed by
Stéphane Wirtel
7 changed files with 84 additions and 26 deletions
-
23Doc/library/http.client.rst
-
55Doc/library/urllib.request.rst
-
9Lib/test/test_urllib.py
-
4Lib/test/test_urllib_response.py
-
14Lib/urllib/request.py
-
4Lib/urllib/response.py
-
1Misc/NEWS.d/next/Documentation/2019-08-27-01-14-59.bpo-12707.Yj3_7_.rst
@ -0,0 +1 @@ |
|||
Deprecate info(), geturl(), getcode() methods in favor of the headers, url, and status properties, respectively, for HTTPResponse and addinfourl. Also deprecate the code attribute of addinfourl in favor of the status attribute. Patch by Ashwin Ramaswami |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue