Skip to content

Commit cc9aa28

Browse files
Use semantic line breaks in reflown paragraphs
1 parent 1a3a6a8 commit cc9aa28

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

Doc/library/time.rst

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ Functions
130130
and is space padded if the day is a single digit,
131131
e.g.: ``'Wed Jun 9 04:26:40 1993'``.
132132

133-
If *time_tuple* is not provided, the current time as returned by
134-
:func:`localtime` is used. Locale information is not used by
135-
:func:`asctime`.
133+
If *time_tuple* is not provided,
134+
the current time as returned by :func:`localtime` is used.
135+
Locale information is not used by :func:`asctime`.
136136

137137
.. note::
138138

@@ -271,9 +271,10 @@ Functions
271271

272272
.. function:: localtime(seconds=None, /)
273273

274-
Like :func:`gmtime` but converts to local time. If *seconds* is not
275-
provided or :const:`None`, the current time as returned by :func:`.time`
276-
is used. The dst flag is set to ``1`` when DST applies to the given time.
274+
Like :func:`gmtime` but converts to local time.
275+
If *seconds* is not provided or :const:`None`,
276+
the current time as returned by :func:`.time` is used.
277+
The dst flag is set to ``1`` when DST applies to the given time.
277278

278279
:func:`localtime` may raise :exc:`OverflowError`, if the timestamp is
279280
outside the range of values supported by the platform C :c:func:`localtime`
@@ -405,14 +406,16 @@ Functions
405406

406407
.. rubric:: Windows implementation
407408

408-
On Windows, if *seconds* is zero, the thread relinquishes the remainder of
409-
its time slice to any other thread that is ready to run. If there are no
410-
other threads ready to run, the function returns immediately, and the thread
411-
continues execution. On Windows 10 and newer the implementation uses
409+
On Windows, if *seconds* is zero,
410+
the thread relinquishes the remainder of its time slice
411+
to any other thread that is ready to run.
412+
If there are no other threads ready to run,
413+
the function returns immediately, and the thread continues execution.
414+
On Windows 10 and newer the implementation uses
412415
a `high-resolution timer
413416
<https://learn.microsoft.com/windows/win32/api/synchapi/nf-synchapi-createwaitabletimerexw>`_
414-
which provides resolution of 100 nanoseconds. If *seconds* is zero,
415-
``Sleep(0)`` is used.
417+
which provides resolution of 100 nanoseconds.
418+
If *seconds* is zero, ``Sleep(0)`` is used.
416419

417420
.. rubric:: Unix implementation
418421

@@ -430,9 +433,10 @@ Functions
430433
.. audit-event:: time.sleep seconds
431434

432435
.. versionchanged:: 3.5
433-
The function now sleeps at least *seconds* even if the sleep is
434-
interrupted by a signal, except if the signal handler raises an
435-
exception (see :pep:`475` for the rationale).
436+
The function now sleeps at least *seconds*
437+
even if the sleep is interrupted by a signal,
438+
except if the signal handler raises an exception
439+
(see :pep:`475` for the rationale).
436440

437441
.. versionchanged:: 3.11
438442
On Unix, the ``clock_nanosleep()`` and ``nanosleep()`` functions are now

0 commit comments

Comments
 (0)