Skip to content

Commit

Permalink
pythonGH-84850: Improve whatsnew entry for [Fancy]URLopener depreca…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
barneygale committed Nov 19, 2024
1 parent 88dc84b commit cd4a191
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd4a191

Please sign in to comment.