[Python-checkins] [3.9] bpo-46586: Fix more erroneous doc links to builtins (GH-31429) (#92199)
JelleZijlstra
webhook-mailer at python.org
Tue May 3 08:09:08 EDT 2022
https://github.com/python/cpython/commit/92d2615d00ce8035cc9e64c1fb87dabf1d7071de
commit: 92d2615d00ce8035cc9e64c1fb87dabf1d7071de
branch: 3.9
author: Jelle Zijlstra <jelle.zijlstra at gmail.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-03T06:08:55-06:00
summary:
[3.9] bpo-46586: Fix more erroneous doc links to builtins (GH-31429) (#92199)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra at gmail.com>
Co-authored-by: Éric <merwok at netwok.org>.
(cherry picked from commit cc6ae4f4835f9e76a34f24cd1f666c1cc0fecfa3)
Co-authored-by: Meer Suri <46469858+meersuri at users.noreply.github.com>
files:
M Doc/library/urllib.request.rst
M Doc/library/zipfile.rst
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 6f6523d8afe9fa..ae9abe7d48ac85 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 3d1e8d8c468dcf..de508cadccc6fe 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
More information about the Python-checkins
mailing list