[3.11] gh-110631: Fix reST indentation in `Doc/library` (GH-110685) (#110737)

* [3.11] gh-110631: Fix reST indentation in `Doc/library` (GH-110685)

Fix wrong indentation in the Doc/library dir..
(cherry picked from commit bb7923f556)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>

* Fix merge glitch.
This commit is contained in:
Ezio Melotti 2023-10-11 23:11:41 +02:00 committed by GitHub
parent fd061a9bbe
commit 07471cda29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
33 changed files with 903 additions and 897 deletions

View File

@ -58,6 +58,7 @@ The :mod:`binascii` module defines the following functions:
data will raise :exc:`binascii.Error`.
Valid base64:
* Conforms to :rfc:`3548`.
* Contains only characters from the base64 alphabet.
* Contains no excess data after padding (including excess padding, newlines, etc.).

View File

@ -1697,7 +1697,6 @@ See :ref:`ctypes-callback-functions` for examples.
Function prototypes created by these factory functions can be instantiated in
different ways, depending on the type and number of the parameters in the call:
.. function:: prototype(address)
:noindex:
:module:
@ -1733,12 +1732,12 @@ different ways, depending on the type and number of the parameters in the call:
COM methods use a special calling convention: They require a pointer to
the COM interface as first argument, in addition to those parameters that
are specified in the :attr:`argtypes` tuple.
are specified in the :attr:`!argtypes` tuple.
The optional *paramflags* parameter creates foreign function wrappers with much
more functionality than the features described above.
*paramflags* must be a tuple of the same length as :attr:`argtypes`.
*paramflags* must be a tuple of the same length as :attr:`~_FuncPtr.argtypes`.
Each item in this tuple contains further information about a parameter, it must
be a tuple containing one, two, or three items.
@ -1760,7 +1759,8 @@ different ways, depending on the type and number of the parameters in the call:
The optional third item is the default value for this parameter.
This example demonstrates how to wrap the Windows ``MessageBoxW`` function so
The following example demonstrates how to wrap the Windows ``MessageBoxW`` function so
that it supports default parameters and named arguments. The C declaration from
the windows header file is this::

View File

@ -1435,6 +1435,7 @@ generator to be determined easily.
Get current state of a generator-iterator.
Possible states are:
* GEN_CREATED: Waiting to start execution.
* GEN_RUNNING: Currently being executed by the interpreter.
* GEN_SUSPENDED: Currently suspended at a yield expression.
@ -1450,6 +1451,7 @@ generator to be determined easily.
``cr_frame`` attributes.
Possible states are:
* CORO_CREATED: Waiting to start execution.
* CORO_RUNNING: Currently being executed by the interpreter.
* CORO_SUSPENDED: Currently suspended at an await expression.

View File

@ -333,13 +333,16 @@ the key ``"id"``, and may contain additional keys to specify filter-dependent
options. Valid filter IDs are as follows:
* Compression filters:
* :const:`FILTER_LZMA1` (for use with :const:`FORMAT_ALONE`)
* :const:`FILTER_LZMA2` (for use with :const:`FORMAT_XZ` and :const:`FORMAT_RAW`)
* Delta filter:
* :const:`FILTER_DELTA`
* Branch-Call-Jump (BCJ) filters:
* :const:`FILTER_X86`
* :const:`FILTER_IA64`
* :const:`FILTER_ARM`

View File

@ -986,19 +986,19 @@ ttk.Treeview
The valid options/values are:
* id
id
Returns the column name. This is a read-only option.
* anchor: One of the standard Tk anchor values.
anchor: One of the standard Tk anchor values.
Specifies how the text in this column should be aligned with respect
to the cell.
* minwidth: width
minwidth: width
The minimum width of the column in pixels. The treeview widget will
not make the column any smaller than specified by this option when
the widget is resized or the user drags a column.
* stretch: ``True``/``False``
stretch: ``True``/``False``
Specifies whether the column's width should be adjusted when
the widget is resized.
* width: width
width: width
The width of the column in pixels.
To configure the tree column, call this with column = "#0"
@ -1041,14 +1041,14 @@ ttk.Treeview
The valid options/values are:
* text: text
text: text
The text to display in the column heading.
* image: imageName
image: imageName
Specifies an image to display to the right of the column heading.
* anchor: anchor
anchor: anchor
Specifies how the heading text should be aligned. One of the standard
Tk anchor values.
* command: callback
command: callback
A callback to be invoked when the heading label is pressed.
To configure the tree column heading, call this with column = "#0".
@ -1398,23 +1398,23 @@ option. If you don't know the class name of a widget, use the method
by statespec/value pairs (this is the imagespec), and *kw* may have the
following options:
* border=padding
border=padding
padding is a list of up to four integers, specifying the left, top,
right, and bottom borders, respectively.
* height=height
height=height
Specifies a minimum height for the element. If less than zero, the
base image's height is used as a default.
* padding=padding
padding=padding
Specifies the element's interior padding. Defaults to border's value
if not specified.
* sticky=spec
sticky=spec
Specifies how the image is placed within the final parcel. spec
contains zero or more characters "n", "s", "w", or "e".
* width=width
width=width
Specifies a minimum width for the element. If less than zero, the
base image's width is used as a default.
@ -1504,20 +1504,20 @@ uses a simplified version of the pack geometry manager: given an
initial cavity, each element is allocated a parcel. Valid
options/values are:
* side: whichside
side: whichside
Specifies which side of the cavity to place the element; one of
top, right, bottom or left. If omitted, the element occupies the
entire cavity.
* sticky: nswe
sticky: nswe
Specifies where the element is placed inside its allocated parcel.
* unit: 0 or 1
unit: 0 or 1
If set to 1, causes the element and all of its descendants to be treated as
a single element for the purposes of :meth:`Widget.identify` et al. It's
used for things like scrollbar thumbs with grips.
* children: [sublayout... ]
children: [sublayout... ]
Specifies a list of elements to place inside the element. Each
element is a tuple (or other sequence type) where the first item is
the layout name, and the other is a `Layout`_.