]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46586: Fix more erroneous doc links to builtins (#31429)
authorMeer Suri <46469858+meersuri@users.noreply.github.com>
Mon, 2 May 2022 22:32:44 +0000 (06:32 +0800)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 22:32:44 +0000 (16:32 -0600)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Doc/library/fileinput.rst
Doc/library/urllib.request.rst
Doc/library/zipfile.rst

index 2a2c1b3c2b921c3c5488d70f2a67f6ba626ea1cc..4bc868759f2025dc02aad726880cffb88bee84cb 100644 (file)
@@ -224,5 +224,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 3823981b37c400bec0af5dbbe4f68f31b4be6ed1..491ef022a1fadcf8c85796f99cad6d8e6caafb71 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 d6a1fce49c545e69fac83406d94a3299d882a7cc..19e128ce02f54be1e2bd602073736ec6092adf9e 100644 (file)
@@ -311,7 +311,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