mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Issue #24232: Fix typos. Patch by Ville Skyttä.
This commit is contained in:
parent
2a8baed833
commit
315e104d11
4 changed files with 4 additions and 4 deletions
|
|
@ -1498,7 +1498,7 @@ preset configurations, as follows:
|
||||||
the ``buffer`` preset.
|
the ``buffer`` preset.
|
||||||
|
|
||||||
Suppresses the ``impl_prototype``, write the ``docstring_definition``
|
Suppresses the ``impl_prototype``, write the ``docstring_definition``
|
||||||
and ``parser_defintion`` to ``buffer``, write everything else to ``block``.
|
and ``parser_definition`` to ``buffer``, write everything else to ``block``.
|
||||||
|
|
||||||
The third new directive is ``destination``::
|
The third new directive is ``destination``::
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1408,7 +1408,7 @@ works::
|
||||||
def worker_process(config):
|
def worker_process(config):
|
||||||
"""
|
"""
|
||||||
A number of these are spawned for the purpose of illustration. In
|
A number of these are spawned for the purpose of illustration. In
|
||||||
practice, they could be a heterogenous bunch of processes rather than
|
practice, they could be a heterogeneous bunch of processes rather than
|
||||||
ones which are identical to each other.
|
ones which are identical to each other.
|
||||||
|
|
||||||
This initialises logging according to the specified configuration,
|
This initialises logging according to the specified configuration,
|
||||||
|
|
|
||||||
|
|
@ -333,7 +333,7 @@ counts, but the output will exclude results with counts of zero or less.
|
||||||
>>> c | d # union: max(c[x], d[x])
|
>>> c | d # union: max(c[x], d[x])
|
||||||
Counter({'a': 3, 'b': 2})
|
Counter({'a': 3, 'b': 2})
|
||||||
|
|
||||||
Unary addition and substraction are shortcuts for adding an empty counter
|
Unary addition and subtraction are shortcuts for adding an empty counter
|
||||||
or subtracting from an empty counter.
|
or subtracting from an empty counter.
|
||||||
|
|
||||||
>>> c = Counter(a=2, b=-4)
|
>>> c = Counter(a=2, b=-4)
|
||||||
|
|
|
||||||
|
|
@ -1269,7 +1269,7 @@ to speed up repeated connections from the same clients.
|
||||||
|
|
||||||
.. attribute:: SSLContext.check_hostname
|
.. attribute:: SSLContext.check_hostname
|
||||||
|
|
||||||
Wether to match the peer cert's hostname with :func:`match_hostname` in
|
Whether to match the peer cert's hostname with :func:`match_hostname` in
|
||||||
:meth:`SSLSocket.do_handshake`. The context's
|
:meth:`SSLSocket.do_handshake`. The context's
|
||||||
:attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or
|
:attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or
|
||||||
:data:`CERT_REQUIRED`, and you must pass *server_hostname* to
|
:data:`CERT_REQUIRED`, and you must pass *server_hostname* to
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue