]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46586: Fix more erroneous doc links to builtins (GH-31429)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 May 2022 22:51:33 +0000 (15:51 -0700)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 22:51:33 +0000 (15:51 -0700)
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>
Doc/library/fileinput.rst
Doc/library/urllib.request.rst
Doc/library/zipfile.rst

index 19cf7c67754f6e620cd7a4be0341b87b8e6b1cd4..2df895a69c43ddc81d87775974e728aca8c0e501 100644 (file)
@@ -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.
index 39d1a277aa6c7575f735155d8083172a7574360a..63248b3d94f212f4e6d2d760e35ea0ca10717fb6 100644 (file)
@@ -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`).
index 43520b697c9d258f4bb5c0b9899fa2ebc01b443a..f6288709fec1aa4af74c81a9c2afbb37187cb643 100644 (file)
@@ -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