diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-11-20 11:14:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 11:14:07 (GMT) |
commit | 9d2a879affe790b44880d4e786b801c80cf6f7a9 (patch) | |
tree | b7119119614fd23ecf3fafebb11b43b7be266d76 /Doc | |
parent | 3746d0a7b388e08b49be4064f081fa502fe52443 (diff) | |
download | cpython-9d2a879affe790b44880d4e786b801c80cf6f7a9.zip cpython-9d2a879affe790b44880d4e786b801c80cf6f7a9.tar.gz cpython-9d2a879affe790b44880d4e786b801c80cf6f7a9.tar.bz2 |
GH-84850: Improve whatsnew entry for `[Fancy]URLopener` removal (#127032)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.14.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 53b2209..cddcaaf 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -772,6 +772,13 @@ urllib * Remove deprecated :class:`!URLopener` and :class:`!FancyURLopener` classes from :mod:`urllib.request`. They had previously raised a :exc:`DeprecationWarning` since Python 3.3. + + ``myopener.open()`` can be replaced with :func:`~urllib.request.urlopen`, + and ``myopener.retrieve()`` can be replaced with + :func:`~urllib.request.urlretrieve`. Customizations to the opener + classes can be replaced by passing customized handlers to + :func:`~urllib.request.build_opener`. + (Contributed by Barney Gale in :gh:`84850`.) Others |