Skip to content

Commit 90b2620

Browse files
authored
[3.11] gh-110631: Fix reST indentation (GH-110724) (#110739)
* Fix wrong indentation in the other dirs. * Fix more wrong indentation.. (cherry picked from commit 718391f)
1 parent 07471cd commit 90b2620

File tree

7 files changed

+51
-53
lines changed

7 files changed

+51
-53
lines changed

Doc/c-api/memory.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -487,18 +487,18 @@ Customize Memory Allocators
487487
488488
:c:func:`PyMem_SetAllocator` does have the following contract:
489489
490-
* It can be called after :c:func:`Py_PreInitialize` and before
491-
:c:func:`Py_InitializeFromConfig` to install a custom memory
492-
allocator. There are no restrictions over the installed allocator
493-
other than the ones imposed by the domain (for instance, the Raw
494-
Domain allows the allocator to be called without the GIL held). See
495-
:ref:`the section on allocator domains <allocator-domains>` for more
496-
information.
497-
498-
* If called after Python has finish initializing (after
499-
:c:func:`Py_InitializeFromConfig` has been called) the allocator
500-
**must** wrap the existing allocator. Substituting the current
501-
allocator for some other arbitrary one is **not supported**.
490+
* It can be called after :c:func:`Py_PreInitialize` and before
491+
:c:func:`Py_InitializeFromConfig` to install a custom memory
492+
allocator. There are no restrictions over the installed allocator
493+
other than the ones imposed by the domain (for instance, the Raw
494+
Domain allows the allocator to be called without the GIL held). See
495+
:ref:`the section on allocator domains <allocator-domains>` for more
496+
information.
497+
498+
* If called after Python has finish initializing (after
499+
:c:func:`Py_InitializeFromConfig` has been called) the allocator
500+
**must** wrap the existing allocator. Substituting the current
501+
allocator for some other arbitrary one is **not supported**.
502502
503503
504504

Doc/howto/enum.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,13 +1119,14 @@ the following are true:
11191119
There is a new boundary mechanism that controls how out-of-range / invalid
11201120
bits are handled: ``STRICT``, ``CONFORM``, ``EJECT``, and ``KEEP``:
11211121

1122-
* STRICT --> raises an exception when presented with invalid values
1123-
* CONFORM --> discards any invalid bits
1124-
* EJECT --> lose Flag status and become a normal int with the given value
1125-
* KEEP --> keep the extra bits
1126-
- keeps Flag status and extra bits
1127-
- extra bits do not show up in iteration
1128-
- extra bits do show up in repr() and str()
1122+
* STRICT --> raises an exception when presented with invalid values
1123+
* CONFORM --> discards any invalid bits
1124+
* EJECT --> lose Flag status and become a normal int with the given value
1125+
* KEEP --> keep the extra bits
1126+
1127+
- keeps Flag status and extra bits
1128+
- extra bits do not show up in iteration
1129+
- extra bits do show up in repr() and str()
11291130

11301131
The default for Flag is ``STRICT``, the default for ``IntFlag`` is ``EJECT``,
11311132
and the default for ``_convert_`` is ``KEEP`` (see ``ssl.Options`` for an

Doc/howto/instrumentation.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ DTrace and SystemTap are monitoring tools, each providing a way to inspect
1313
what the processes on a computer system are doing. They both use
1414
domain-specific languages allowing a user to write scripts which:
1515

16-
- filter which processes are to be observed
17-
- gather data from the processes of interest
18-
- generate reports on the data
16+
- filter which processes are to be observed
17+
- gather data from the processes of interest
18+
- generate reports on the data
1919

2020
As of Python 3.6, CPython can be built with embedded "markers", also
2121
known as "probes", that can be observed by a DTrace or SystemTap script,
@@ -246,11 +246,9 @@ The output looks like this:
246246
247247
where the columns are:
248248

249-
- time in microseconds since start of script
250-
251-
- name of executable
252-
253-
- PID of process
249+
- time in microseconds since start of script
250+
- name of executable
251+
- PID of process
254252

255253
and the remainder indicates the call/return hierarchy as the script executes.
256254

Doc/library/csv.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ The :mod:`csv` module defines the following classes:
284284
Inspecting each column, one of two key criteria will be considered to
285285
estimate if the sample contains a header:
286286

287-
- the second through n-th rows contain numeric values
288-
- the second through n-th rows contain strings where at least one value's
289-
length differs from that of the putative header of that column.
287+
- the second through n-th rows contain numeric values
288+
- the second through n-th rows contain strings where at least one value's
289+
length differs from that of the putative header of that column.
290290

291291
Twenty rows after the first row are sampled; if more than half of columns +
292292
rows meet the criteria, :const:`True` is returned.

Doc/library/dataclasses.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,11 @@ Module contents
319319
module-level method (see below). Users should never instantiate a
320320
:class:`Field` object directly. Its documented attributes are:
321321

322-
- ``name``: The name of the field.
323-
324-
- ``type``: The type of the field.
325-
326-
- ``default``, ``default_factory``, ``init``, ``repr``, ``hash``,
327-
``compare``, ``metadata``, and ``kw_only`` have the identical
328-
meaning and values as they do in the :func:`field` function.
322+
- ``name``: The name of the field.
323+
- ``type``: The type of the field.
324+
- ``default``, ``default_factory``, ``init``, ``repr``, ``hash``,
325+
``compare``, ``metadata``, and ``kw_only`` have the identical
326+
meaning and values as they do in the :func:`field` function.
329327

330328
Other attributes may exist, but they are private and must not be
331329
inspected or relied on.

Doc/library/decimal.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,10 +1396,10 @@ In addition to the three supplied contexts, new contexts can be created with the
13961396
With three arguments, compute ``(x**y) % modulo``. For the three argument
13971397
form, the following restrictions on the arguments hold:
13981398

1399-
- all three arguments must be integral
1400-
- ``y`` must be nonnegative
1401-
- at least one of ``x`` or ``y`` must be nonzero
1402-
- ``modulo`` must be nonzero and have at most 'precision' digits
1399+
- all three arguments must be integral
1400+
- ``y`` must be nonnegative
1401+
- at least one of ``x`` or ``y`` must be nonzero
1402+
- ``modulo`` must be nonzero and have at most 'precision' digits
14031403

14041404
The value resulting from ``Context.power(x, y, modulo)`` is
14051405
equal to the value that would be obtained by computing ``(x**y)

Doc/using/windows.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,21 +1174,22 @@ Otherwise, your users may experience problems using your application. Note that
11741174
the first suggestion is the best, as the others may still be susceptible to
11751175
non-standard paths in the registry and user site-packages.
11761176

1177-
.. versionchanged::
1178-
3.6
1177+
.. versionchanged:: 3.6
1178+
1179+
Add ``._pth`` file support and removes ``applocal`` option from
1180+
``pyvenv.cfg``.
1181+
1182+
.. versionchanged:: 3.6
11791183

1180-
* Adds ``._pth`` file support and removes ``applocal`` option from
1181-
``pyvenv.cfg``.
1182-
* Adds :file:`python{XX}.zip` as a potential landmark when directly adjacent
1183-
to the executable.
1184+
Add :file:`python{XX}.zip` as a potential landmark when directly adjacent
1185+
to the executable.
11841186

1185-
.. deprecated::
1186-
3.6
1187+
.. deprecated:: 3.6
11871188

1188-
Modules specified in the registry under ``Modules`` (not ``PythonPath``)
1189-
may be imported by :class:`importlib.machinery.WindowsRegistryFinder`.
1190-
This finder is enabled on Windows in 3.6.0 and earlier, but may need to
1191-
be explicitly added to :data:`sys.meta_path` in the future.
1189+
Modules specified in the registry under ``Modules`` (not ``PythonPath``)
1190+
may be imported by :class:`importlib.machinery.WindowsRegistryFinder`.
1191+
This finder is enabled on Windows in 3.6.0 and earlier, but may need to
1192+
be explicitly added to :data:`sys.meta_path` in the future.
11921193

11931194
Additional modules
11941195
==================

0 commit comments

Comments
 (0)