summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-02 22:51:33 (GMT)
committerGitHub <noreply@github.com>2022-05-02 22:51:33 (GMT)
commit5f40cb85c22212365caf599665614473ac077143 (patch)
tree31741a63f2103dbb35333a2a9dedcfbab608c714
parentc467812bc0174c12546f7bfdd4f6e445b87590c0 (diff)
downloadcpython-5f40cb85c22212365caf599665614473ac077143.zip
cpython-5f40cb85c22212365caf599665614473ac077143.tar.gz
cpython-5f40cb85c22212365caf599665614473ac077143.tar.bz2
bpo-46586: Fix more erroneous doc links to builtins (GH-31429)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Éric <merwok@netwok.org> (cherry picked from commit cc6ae4f4835f9e76a34f24cd1f666c1cc0fecfa3) Co-authored-by: Meer Suri <46469858+meersuri@users.noreply.github.com>
-rw-r--r--Doc/library/fileinput.rst2
-rw-r--r--Doc/library/urllib.request.rst2
-rw-r--r--Doc/library/zipfile.rst2
3 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst
index 19cf7c6..2df895a 100644
--- a/Doc/library/fileinput.rst
+++ b/Doc/library/fileinput.rst
@@ -227,5 +227,5 @@ The two following opening hooks are provided by this module:
Added the optional *errors* parameter.
.. deprecated:: 3.10
- This function is deprecated since :func:`input` and :class:`FileInput`
+ This function is deprecated since :func:`fileinput.input` and :class:`FileInput`
now have *encoding* and *errors* parameters.
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 39d1a27..63248b3 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -739,7 +739,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 43520b6..f628870 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