mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
GH-84850: Improve whatsnew entry for [Fancy]URLopener
removal (#127032)
This commit is contained in:
parent
3746d0a7b3
commit
9d2a879aff
1 changed files with 7 additions and 0 deletions
|
@ -772,6 +772,13 @@ urllib
|
||||||
* Remove deprecated :class:`!URLopener` and :class:`!FancyURLopener` classes
|
* Remove deprecated :class:`!URLopener` and :class:`!FancyURLopener` classes
|
||||||
from :mod:`urllib.request`. They had previously raised a
|
from :mod:`urllib.request`. They had previously raised a
|
||||||
:exc:`DeprecationWarning` since Python 3.3.
|
: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`.)
|
(Contributed by Barney Gale in :gh:`84850`.)
|
||||||
|
|
||||||
Others
|
Others
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue