Skip to content

Commit 23030bd

Browse files
Alexandr153picnixz
andauthored
Update Misc/NEWS.d/next/Library/2025-04-18-04-47-39.gh-issue-123503.mfg0wD.rst
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 32848af commit 23030bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
Deprecated attributes urllib.response.addinfourl.status and http.client.HTTPResponse.info() have been replaced with their modern equivalents (HTTPResponse.headers) while maintaining backwards-compatibility.
1+
Subsitute internal usages of deprecated attributes :attr:`addinfourl.code
2+
<urllib.response.addinfourl.code>` and :meth:`HTTPResponse.info
3+
<http.client.HTTPResponse.info>` for their recommended equivalents
4+
(:attr:`addinfourl.status <urllib.response.addinfourl.status>` and
5+
:attr::`HTTPResponse.headers <http.client.HTTPResponse.headers>`),
6+
while retaining backwards compatibility.

0 commit comments

Comments
 (0)