From: Jelle Zijlstra Date: Tue, 3 May 2022 12:08:55 +0000 (-0600) Subject: [3.9] bpo-46586: Fix more erroneous doc links to builtins (GH-31429) (#92199) X-Git-Tag: v3.9.13~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92d2615d00ce8035cc9e64c1fb87dabf1d7071de;p=thirdparty%2FPython%2Fcpython.git [3.9] bpo-46586: Fix more erroneous doc links to builtins (GH-31429) (#92199) Co-authored-by: Jelle Zijlstra Co-authored-by: Éric . (cherry picked from commit cc6ae4f4835f9e76a34f24cd1f666c1cc0fecfa3) Co-authored-by: Meer Suri <46469858+meersuri@users.noreply.github.com> --- diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 6f6523d8afe9..ae9abe7d48ac 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -734,7 +734,7 @@ The following attribute and methods should only be used by classes derived from This method, if implemented, will be called by the parent :class:`OpenerDirector`. It should return a file-like object as described in - the return value of the :meth:`open` of :class:`OpenerDirector`, or ``None``. + the return value of the :meth:`~OpenerDirector.open` method of :class:`OpenerDirector`, or ``None``. It should raise :exc:`~urllib.error.URLError`, unless a truly exceptional thing happens (for example, :exc:`MemoryError` should not be mapped to :exc:`URLError`). diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 3d1e8d8c468d..de508cadccc6 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -289,7 +289,7 @@ ZipFile Objects compressed text files in :term:`universal newlines` mode. .. versionchanged:: 3.6 - :meth:`open` can now be used to write files into the archive with the + :meth:`ZipFile.open` can now be used to write files into the archive with the ``mode='w'`` option. .. versionchanged:: 3.6