summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-11 21:11:28 (GMT)
committerGitHub <noreply@github.com>2023-10-11 21:11:28 (GMT)
commitcae968ba1708ce23760974e850a0fceee856d926 (patch)
tree46546aec5d6595d8e4222d4cad03aa243621b0cc /Doc/library/functions.rst
parente6c53dd08535076fc60e9295bf46a2b7e615e2f3 (diff)
downloadcpython-cae968ba1708ce23760974e850a0fceee856d926.zip
cpython-cae968ba1708ce23760974e850a0fceee856d926.tar.gz
cpython-cae968ba1708ce23760974e850a0fceee856d926.tar.bz2
[3.12] gh-110631: Fix reST indentation in `Doc/library` (GH-110685) (#110736)
gh-110631: Fix reST indentation in `Doc/library` (GH-110685) Fix wrong indentation in the Doc/library dir. (cherry picked from commit bb7923f556537a463c403dc1097726d8a8e1a6f2) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst30
1 files changed, 15 insertions, 15 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 3cb70b7..3277edd 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1158,8 +1158,8 @@ are always available. They are listed here in alphabetical order.
See also :func:`format` for more information.
- .. index::
- single: file object; open() built-in function
+.. index::
+ single: file object; open() built-in function
.. function:: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
@@ -1360,28 +1360,28 @@ are always available. They are listed here in alphabetical order.
.. versionchanged:: 3.3
- * The *opener* parameter was added.
- * The ``'x'`` mode was added.
- * :exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`.
- * :exc:`FileExistsError` is now raised if the file opened in exclusive
- creation mode (``'x'``) already exists.
+ * The *opener* parameter was added.
+ * The ``'x'`` mode was added.
+ * :exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`.
+ * :exc:`FileExistsError` is now raised if the file opened in exclusive
+ creation mode (``'x'``) already exists.
.. versionchanged:: 3.4
- * The file is now non-inheritable.
+ * The file is now non-inheritable.
.. versionchanged:: 3.5
- * If the system call is interrupted and the signal handler does not raise an
- exception, the function now retries the system call instead of raising an
- :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
- * The ``'namereplace'`` error handler was added.
+ * If the system call is interrupted and the signal handler does not raise an
+ exception, the function now retries the system call instead of raising an
+ :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
+ * The ``'namereplace'`` error handler was added.
.. versionchanged:: 3.6
- * Support added to accept objects implementing :class:`os.PathLike`.
- * On Windows, opening a console buffer may return a subclass of
- :class:`io.RawIOBase` other than :class:`io.FileIO`.
+ * Support added to accept objects implementing :class:`os.PathLike`.
+ * On Windows, opening a console buffer may return a subclass of
+ :class:`io.RawIOBase` other than :class:`io.FileIO`.
.. versionchanged:: 3.11
The ``'U'`` mode has been removed.