Skip to content

Commit d1c3e1c

Browse files
committed
rewrap
1 parent fca06dc commit d1c3e1c

18 files changed

Lines changed: 68 additions & 89 deletions

‎Doc/library/ctypes.rst‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3759,9 +3759,8 @@ fields, or any other data types containing pointer type fields.
37593759
:module: ctypes.util
37603760

37613761
Information regarding a structure field defined by the
3762-
:func:`~ctypes.util.struct`
3763-
decorator. This should be used in the second argument of a
3764-
:class:`typing.Annotated` wrapping a ctypes type.
3762+
:func:`~ctypes.util.struct` decorator. This should be used in the second
3763+
argument of a :class:`typing.Annotated` wrapping a ctypes type.
37653764

37663765
*anonymous* specifies whether the field will be present in the
37673766
:attr:`~ctypes.Structure._anonymous_` attribute of the generated class.

‎Doc/library/datetime.rst‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,9 +1387,8 @@ Instance methods:
13871387
tzinfo=self.tzinfo, *, fold=0)
13881388
13891389
Return a new :class:`~datetime.datetime` object with the same attributes, but
1390-
with
1391-
specified parameters updated. Note that ``tzinfo=None`` can be specified to
1392-
create a naive datetime from an aware datetime with no conversion of date
1390+
with specified parameters updated. Note that ``tzinfo=None`` can be specified
1391+
to create a naive datetime from an aware datetime with no conversion of date
13931392
and time data.
13941393

13951394
:class:`.datetime` objects are also supported by generic function

‎Doc/library/getopt.rst‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,9 @@ exception:
8181
.. function:: gnu_getopt(args, shortopts, longopts=[])
8282

8383
This function works like :func:`~getopt.getopt`, except that GNU style
84-
scanning mode is
85-
used by default. This means that option and non-option arguments may be
86-
intermixed. The :func:`~getopt.getopt` function stops processing options as
87-
soon as a
88-
non-option argument is encountered.
84+
scanning mode is used by default. This means that option and non-option
85+
arguments may be intermixed. The :func:`~getopt.getopt` function stops
86+
processing options as soon as a non-option argument is encountered.
8987

9088
If the first character of the option string is ``'+'``, or if the environment
9189
variable :envvar:`!POSIXLY_CORRECT` is set, then option processing stops as

‎Doc/library/getpass.rst‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ The :mod:`!getpass` module provides two functions:
2828
display asterisks instead of the actual input.
2929

3030
If echo-free input is unavailable, :func:`~getpass.getpass` falls back to
31-
printing
32-
a warning message to *stream* and reading from :data:`sys.stdin` and
31+
printing a warning message to *stream* and reading from :data:`sys.stdin` and
3332
issuing a :exc:`GetPassWarning`.
3433

3534
.. note::
3635
If you call :func:`~getpass.getpass` from within IDLE, the input may be
37-
done in the
38-
terminal you launched IDLE from rather than the idle window itself.
36+
done in the terminal you launched IDLE from rather than the idle window
37+
itself.
3938

4039
.. note::
4140
On Unix systems, when *echo_char* is set, the terminal will be

‎Doc/library/gettext.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ class-based API instead.
9090

9191
Similar to the corresponding functions without the ``p`` in the prefix (that
9292
is, :func:`~gettext.gettext`, :func:`dgettext`, :func:`ngettext`,
93-
:func:`dngettext`),
94-
but the translation is restricted to the given message *context*.
93+
:func:`dngettext`), but the translation is restricted to the given message
94+
*context*.
9595

9696
.. versionadded:: 3.8
9797

‎Doc/library/marshal.rst‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ this module. The following types are supported:
5959
Recursive containers are supported since :data:`version` 3.
6060
* The singletons :const:`None`, :const:`Ellipsis` and :exc:`StopIteration`.
6161
* :class:`code <types.CodeType>` objects, if *allow_code* is true. See note
62-
above about
63-
version dependence.
62+
above about version dependence.
6463

6564
.. versionchanged:: 3.4
6665

‎Doc/library/mmap.rst‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,10 @@ PROT_* constants
426426
PROT_EXEC
427427

428428
Memory protection flags accepted by the *prot* argument of
429-
:class:`~mmap.mmap`.
430-
:const:`PROT_READ` allows pages to be read, :const:`PROT_WRITE` allows pages
431-
to be written, and :const:`PROT_EXEC` allows pages to be executed. Values
432-
can be combined using the bitwise OR operator. Not every option is present
433-
on every system.
429+
:class:`~mmap.mmap`. :const:`PROT_READ` allows pages to be read,
430+
:const:`PROT_WRITE` allows pages to be written, and :const:`PROT_EXEC` allows
431+
pages to be executed. Values can be combined using the bitwise OR operator.
432+
Not every option is present on every system.
434433

435434
.. availability:: Unix.
436435

‎Doc/library/multiprocessing.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,10 +2463,10 @@ with the :class:`Pool` class.
24632463

24642464
.. warning::
24652465
:class:`~multiprocessing.pool.Pool` objects have internal resources that
2466-
need to be
2467-
properly managed (like any other resource) by using the pool as a context manager
2468-
or by calling :meth:`close` and :meth:`terminate` manually. Failure to do this
2469-
can lead to the process hanging on finalization.
2466+
need to be properly managed (like any other resource) by using the pool as
2467+
a context manager or by calling :meth:`close` and :meth:`terminate`
2468+
manually. Failure to do this can lead to the process hanging on
2469+
finalization.
24702470

24712471
Note that it is **not correct** to rely on the garbage collector to destroy the pool
24722472
as CPython does not assure that the finalizer of the pool will be called

‎Doc/library/multiprocessing.shared_memory.rst‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ same :class:`!numpy.ndarray` from two distinct Python shells:
223223

224224
This class provides methods for creating and returning
225225
:class:`~multiprocessing.shared_memory.SharedMemory` instances and for
226-
creating
227-
a list-like object (:class:`~multiprocessing.shared_memory.ShareableList`)
228-
backed by shared memory.
226+
creating a list-like object
227+
(:class:`~multiprocessing.shared_memory.ShareableList`) backed by shared
228+
memory.
229229

230230
Refer to :class:`~multiprocessing.managers.BaseManager` for a description
231231
of the inherited *address* and *authkey* optional input arguments and how
@@ -235,14 +235,14 @@ same :class:`!numpy.ndarray` from two distinct Python shells:
235235
.. method:: SharedMemory(size)
236236

237237
Create and return a new
238-
:class:`~multiprocessing.shared_memory.SharedMemory`
239-
object with the specified *size* in bytes.
238+
:class:`~multiprocessing.shared_memory.SharedMemory` object with the
239+
specified *size* in bytes.
240240

241241
.. method:: ShareableList(sequence)
242242

243243
Create and return a new
244-
:class:`~multiprocessing.shared_memory.ShareableList`
245-
object, initialized by the values from the input *sequence*.
244+
:class:`~multiprocessing.shared_memory.ShareableList` object, initialized
245+
by the values from the input *sequence*.
246246

247247

248248
The following example demonstrates the basic mechanisms of a

‎Doc/library/optparse.rst‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,10 +2041,9 @@ Finally, the Option subclass::
20412041
TYPE_CHECKER["complex"] = check_complex
20422042

20432043
(If we didn't make a :func:`~copy.copy` of :attr:`Option.TYPE_CHECKER`, we would
2044-
end
2045-
up modifying the :attr:`~Option.TYPE_CHECKER` attribute of :mod:`!optparse`'s
2046-
Option class. This being Python, nothing stops you from doing that except good
2047-
manners and common sense.)
2044+
end up modifying the :attr:`~Option.TYPE_CHECKER` attribute of
2045+
:mod:`!optparse`'s Option class. This being Python, nothing stops you from
2046+
doing that except good manners and common sense.)
20482047

20492048
That's it! Now you can write a script that uses the new option type just like
20502049
any other :mod:`!optparse`\ -based script, except you have to instruct your

0 commit comments

Comments
 (0)