bpo-46586: Fix more erroneous doc links to builtins (#31429)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
This commit is contained in:
Meer Suri 2022-05-03 06:32:44 +08:00 committed by GitHub
parent 5e9323a547
commit cc6ae4f483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -224,5 +224,5 @@ The two following opening hooks are provided by this module:
Added the optional *errors* parameter. Added the optional *errors* parameter.
.. deprecated:: 3.10 .. 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. now have *encoding* and *errors* parameters.

View 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 This method, if implemented, will be called by the parent
:class:`OpenerDirector`. It should return a file-like object as described in :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 It should raise :exc:`~urllib.error.URLError`, unless a truly exceptional
thing happens (for example, :exc:`MemoryError` should not be mapped to thing happens (for example, :exc:`MemoryError` should not be mapped to
:exc:`URLError`). :exc:`URLError`).

View file

@ -311,7 +311,7 @@ ZipFile Objects
compressed text files in :term:`universal newlines` mode. compressed text files in :term:`universal newlines` mode.
.. versionchanged:: 3.6 .. 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. ``mode='w'`` option.
.. versionchanged:: 3.6 .. versionchanged:: 3.6