Skip to content

Commit 9d2a879

Browse files
authored
GH-84850: Improve whatsnew entry for [Fancy]URLopener removal (#127032)
1 parent 3746d0a commit 9d2a879

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,13 @@ urllib
772772
* Remove deprecated :class:`!URLopener` and :class:`!FancyURLopener` classes
773773
from :mod:`urllib.request`. They had previously raised a
774774
:exc:`DeprecationWarning` since Python 3.3.
775+
776+
``myopener.open()`` can be replaced with :func:`~urllib.request.urlopen`,
777+
and ``myopener.retrieve()`` can be replaced with
778+
:func:`~urllib.request.urlretrieve`. Customizations to the opener
779+
classes can be replaced by passing customized handlers to
780+
:func:`~urllib.request.build_opener`.
781+
775782
(Contributed by Barney Gale in :gh:`84850`.)
776783

777784
Others

0 commit comments

Comments
 (0)