Skip to content

Commit 854516b

Browse files
committed
Use sentence case for headers
1 parent 0d555e4 commit 854516b

File tree

11 files changed

+67
-67
lines changed

11 files changed

+67
-67
lines changed

Doc/faq/programming.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Programming FAQ
88

99
.. contents::
1010

11-
General Questions
11+
General questions
1212
=================
1313

1414
Is there a source code level debugger with breakpoints, single-stepping, etc.?
@@ -110,7 +110,7 @@ Yes. The coding style required for standard library modules is documented as
110110
:pep:`8`.
111111

112112

113-
Core Language
113+
Core language
114114
=============
115115

116116
.. _faq-unboundlocalerror:
@@ -1153,7 +1153,7 @@ a :class:`bytearray` object using in-place concatenation (the ``+=`` operator)::
11531153
result += b
11541154

11551155

1156-
Sequences (Tuples/Lists)
1156+
Sequences (tuples/lists)
11571157
========================
11581158

11591159
How do I convert between tuples and lists?

Doc/howto/logging-cookbook.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,10 +1549,10 @@ to this (remembering to first import :mod:`concurrent.futures`)::
15491549
for i in range(10):
15501550
executor.submit(worker_process, queue, worker_configurer)
15511551

1552-
Deploying Web applications using Gunicorn and uWSGI
1552+
Deploying web applications using Gunicorn and uWSGI
15531553
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15541554

1555-
When deploying Web applications using `Gunicorn <https://gunicorn.org/>`_ or `uWSGI
1555+
When deploying web applications using `Gunicorn <https://gunicorn.org/>`_ or `uWSGI
15561556
<https://uwsgi-docs.readthedocs.io/en/latest/>`_ (or similar), multiple worker
15571557
processes are created to handle client requests. In such environments, avoid creating
15581558
file-based handlers directly in your web application. Instead, use a

Doc/library/asyncio-eventloop.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.. _asyncio-event-loop:
55

66
==========
7-
Event Loop
7+
Event loop
88
==========
99

1010
**Source code:** :source:`Lib/asyncio/events.py`,
@@ -105,7 +105,7 @@ This documentation page contains the following sections:
105105

106106
.. _asyncio-event-loop-methods:
107107

108-
Event Loop Methods
108+
Event loop methods
109109
==================
110110

111111
Event loops have **low-level** APIs for the following:
@@ -361,7 +361,7 @@ clocks to track time.
361361
The :func:`asyncio.sleep` function.
362362

363363

364-
Creating Futures and Tasks
364+
Creating futures and tasks
365365
^^^^^^^^^^^^^^^^^^^^^^^^^^
366366

367367
.. method:: loop.create_future()
@@ -962,7 +962,7 @@ Transferring files
962962
.. versionadded:: 3.7
963963

964964

965-
TLS Upgrade
965+
TLS upgrade
966966
^^^^^^^^^^^
967967

968968
.. method:: loop.start_tls(transport, protocol, \
@@ -1431,7 +1431,7 @@ Executing code in thread or process pools
14311431
:class:`~concurrent.futures.ThreadPoolExecutor`.
14321432

14331433

1434-
Error Handling API
1434+
Error handling API
14351435
^^^^^^^^^^^^^^^^^^
14361436

14371437
Allows customizing how exceptions are handled in the event loop.
@@ -1534,7 +1534,7 @@ Enabling debug mode
15341534
The :ref:`debug mode of asyncio <asyncio-debug-mode>`.
15351535

15361536

1537-
Running Subprocesses
1537+
Running subprocesses
15381538
^^^^^^^^^^^^^^^^^^^^
15391539

15401540
Methods described in this subsections are low-level. In regular
@@ -1672,7 +1672,7 @@ async/await code consider using the high-level
16721672
are going to be used to construct shell commands.
16731673

16741674

1675-
Callback Handles
1675+
Callback handles
16761676
================
16771677

16781678
.. class:: Handle
@@ -1715,7 +1715,7 @@ Callback Handles
17151715
.. versionadded:: 3.7
17161716

17171717

1718-
Server Objects
1718+
Server objects
17191719
==============
17201720

17211721
Server objects are created by :meth:`loop.create_server`,
@@ -1858,7 +1858,7 @@ Do not instantiate the :class:`Server` class directly.
18581858
.. _asyncio-event-loops:
18591859
.. _asyncio-event-loop-implementations:
18601860

1861-
Event Loop Implementations
1861+
Event loop implementations
18621862
==========================
18631863

18641864
asyncio ships with two different event loop implementations:

Doc/library/asyncio-task.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
====================
5-
Coroutines and Tasks
5+
Coroutines and tasks
66
====================
77

88
This section outlines high-level asyncio APIs to work with coroutines
@@ -231,7 +231,7 @@ A good example of a low-level function that returns a Future object
231231
is :meth:`loop.run_in_executor`.
232232

233233

234-
Creating Tasks
234+
Creating tasks
235235
==============
236236

237237
**Source code:** :source:`Lib/asyncio/tasks.py`
@@ -300,7 +300,7 @@ Creating Tasks
300300
Added the *eager_start* parameter by passing on all *kwargs*.
301301

302302

303-
Task Cancellation
303+
Task cancellation
304304
=================
305305

306306
Tasks can easily and safely be cancelled.
@@ -324,7 +324,7 @@ remove the cancellation state.
324324

325325
.. _taskgroups:
326326

327-
Task Groups
327+
Task groups
328328
===========
329329

330330
Task groups combine a task creation API with a convenient
@@ -427,7 +427,7 @@ reported by :meth:`asyncio.Task.cancelling`.
427427
Improved handling of simultaneous internal and external cancellations
428428
and correct preservation of cancellation counts.
429429

430-
Terminating a Task Group
430+
Terminating a task group
431431
------------------------
432432

433433
While terminating a task group is not natively supported by the standard
@@ -519,7 +519,7 @@ Sleeping
519519
Raises :exc:`ValueError` if *delay* is :data:`~math.nan`.
520520

521521

522-
Running Tasks Concurrently
522+
Running tasks concurrently
523523
==========================
524524

525525
.. awaitablefunction:: gather(*aws, return_exceptions=False)
@@ -621,7 +621,7 @@ Running Tasks Concurrently
621621

622622
.. _eager-task-factory:
623623

624-
Eager Task Factory
624+
Eager task factory
625625
==================
626626

627627
.. function:: eager_task_factory(loop, coro, *, name=None, context=None)
@@ -664,7 +664,7 @@ Eager Task Factory
664664
.. versionadded:: 3.12
665665

666666

667-
Shielding From Cancellation
667+
Shielding from cancellation
668668
===========================
669669

670670
.. awaitablefunction:: shield(aw)
@@ -894,7 +894,7 @@ Timeouts
894894
Raises :exc:`TimeoutError` instead of :exc:`asyncio.TimeoutError`.
895895

896896

897-
Waiting Primitives
897+
Waiting primitives
898898
==================
899899

900900
.. function:: wait(aws, *, timeout=None, return_when=ALL_COMPLETED)
@@ -1014,7 +1014,7 @@ Waiting Primitives
10141014
or as a plain :term:`iterator` (previously it was only a plain iterator).
10151015

10161016

1017-
Running in Threads
1017+
Running in threads
10181018
==================
10191019

10201020
.. function:: to_thread(func, /, *args, **kwargs)
@@ -1074,7 +1074,7 @@ Running in Threads
10741074
.. versionadded:: 3.9
10751075

10761076

1077-
Scheduling From Other Threads
1077+
Scheduling from other threads
10781078
=============================
10791079

10801080
.. function:: run_coroutine_threadsafe(coro, loop)
@@ -1198,7 +1198,7 @@ Introspection
11981198

11991199
.. _asyncio-task-obj:
12001200

1201-
Task Object
1201+
Task object
12021202
===========
12031203

12041204
.. class:: Task(coro, *, loop=None, name=None, context=None, eager_start=False)

Doc/library/difflib.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
362362

363363
.. _sequence-matcher:
364364

365-
SequenceMatcher Objects
365+
SequenceMatcher objects
366366
-----------------------
367367

368368
The :class:`SequenceMatcher` class has this constructor:
@@ -590,7 +590,7 @@ are always at least as large as :meth:`~SequenceMatcher.ratio`:
590590

591591
.. _sequencematcher-examples:
592592

593-
SequenceMatcher Examples
593+
SequenceMatcher examples
594594
------------------------
595595

596596
This example compares two strings, considering blanks to be "junk":
@@ -641,7 +641,7 @@ If you want to know how to change the first sequence into the second, use
641641

642642
.. _differ-objects:
643643

644-
Differ Objects
644+
Differ objects
645645
--------------
646646

647647
Note that :class:`Differ`\ -generated deltas make no claim to be **minimal**
@@ -690,7 +690,7 @@ The :class:`Differ` class has this constructor:
690690

691691
.. _differ-examples:
692692

693-
Differ Example
693+
Differ example
694694
--------------
695695

696696
This example compares two texts. First we set up the texts, sequences of

Doc/library/enum.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ are not normal Python classes. See
5656

5757
---------------
5858

59-
Module Contents
59+
Module contents
6060
---------------
6161

6262
:class:`EnumType`
@@ -161,7 +161,7 @@ Module Contents
161161

162162
---------------
163163

164-
Data Types
164+
Data types
165165
----------
166166

167167

@@ -970,7 +970,7 @@ Supported ``_sunder_`` names
970970

971971
---------------
972972

973-
Utilities and Decorators
973+
Utilities and decorators
974974
------------------------
975975

976976
.. class:: auto

Doc/library/ssl.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ by SSL sockets created through the :meth:`SSLContext.wrap_socket` method.
6767
Use of deprecated constants and functions result in deprecation warnings.
6868

6969

70-
Functions, Constants, and Exceptions
70+
Functions, constants, and exceptions
7171
------------------------------------
7272

7373

@@ -374,7 +374,7 @@ Certificate handling
374374

375375
.. function:: cert_time_to_seconds(cert_time)
376376

377-
Return the time in seconds since the Epoch, given the ``cert_time``
377+
Return the time in seconds since the epoch, given the ``cert_time``
378378
string representing the "notBefore" or "notAfter" date from a
379379
certificate in ``"%b %d %H:%M:%S %Y %Z"`` strptime format (C
380380
locale).
@@ -1072,7 +1072,7 @@ Constants
10721072
:attr:`TLSVersion.TLSv1_3` are deprecated.
10731073

10741074

1075-
SSL Sockets
1075+
SSL sockets
10761076
-----------
10771077

10781078
.. class:: SSLSocket(socket.socket)
@@ -1462,7 +1462,7 @@ SSL sockets also have the following additional methods and attributes:
14621462
.. versionadded:: 3.6
14631463

14641464

1465-
SSL Contexts
1465+
SSL contexts
14661466
------------
14671467

14681468
.. versionadded:: 3.2
@@ -2653,7 +2653,7 @@ thus several things you need to be aware of:
26532653
as well.
26542654

26552655

2656-
Memory BIO Support
2656+
Memory BIO support
26572657
------------------
26582658

26592659
.. versionadded:: 3.5

Doc/library/string.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The constants defined in this module are:
8282

8383
.. _string-formatting:
8484

85-
Custom String Formatting
85+
Custom string formatting
8686
------------------------
8787

8888
The built-in string class provides the ability to do complex variable
@@ -192,7 +192,7 @@ implementation as the built-in :meth:`~str.format` method.
192192

193193
.. _formatstrings:
194194

195-
Format String Syntax
195+
Format string syntax
196196
--------------------
197197

198198
The :meth:`str.format` method and the :class:`Formatter` class share the same
@@ -304,7 +304,7 @@ See the :ref:`formatexamples` section for some examples.
304304

305305
.. _formatspec:
306306

307-
Format Specification Mini-Language
307+
Format specification mini-language
308308
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
309309

310310
"Format specifications" are used within replacement fields contained within a

0 commit comments

Comments
 (0)