Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c1dba2

Browse files
committed
Revert #22251
1 parent 9ce6967 commit 9c1dba2

18 files changed

Lines changed: 6 additions & 38 deletions

Doc/extending/newtypes.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,6 @@ done. This can be done using the :c:func:`PyErr_Fetch` and
983983
}
984984

985985
.. note::
986-
987986
There are limitations to what you can safely do in a deallocator function.
988987
First, if your type supports garbage collection (using :c:member:`~PyTypeObject.tp_traverse`
989988
and/or :c:member:`~PyTypeObject.tp_clear`), some of the object's members can have been
@@ -998,7 +997,6 @@ done. This can be done using the :c:func:`PyErr_Fetch` and
998997
:c:member:`~PyTypeObject.tp_finalize` type method.
999998

1000999
.. seealso::
1001-
10021000
:pep:`442` explains the new finalization scheme.
10031001

10041002
.. index::

Doc/faq/library.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,7 @@ quoted using :func:`urllib.parse.urlencode`. For example, to send
697697
>>> urllib.parse.urlencode({'name': 'Guy Steele, Jr.'})
698698
'name=Guy+Steele%2C+Jr.'
699699

700-
.. seealso::
701-
702-
:ref:`urllib-howto` for extensive examples.
700+
.. seealso:: :ref:`urllib-howto` for extensive examples.
703701

704702

705703
What module should I use to help with generating HTML?

Doc/library/argparse.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,6 @@ the populated namespace and the list of remaining argument strings.
18941894
(Namespace(bar='BAR', foo=True), ['--badger', 'spam'])
18951895

18961896
.. warning::
1897-
18981897
:ref:`Prefix matching <prefix-matching>` rules apply to
18991898
:meth:`parse_known_args`. The parser may consume an option even if it's just
19001899
a prefix of one of its known options, instead of leaving it in the remaining

Doc/library/asyncio-eventloop.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ Creating connections
197197
the transport; if *ssl* is :const:`True`, a context with some
198198
unspecified default settings is used.
199199

200-
.. seealso::
201-
202-
:ref:`SSL/TLS security considerations <ssl-security>`
200+
.. seealso:: :ref:`SSL/TLS security considerations <ssl-security>`
203201

204202
* *server_hostname*, is only for use together with *ssl*,
205203
and sets or overrides the hostname that the target server's certificate

Doc/library/asyncio-protocol.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ even more), and eventually :meth:`resume_writing` is called once when the
407407
buffer size reaches the low-water mark.
408408

409409
.. note::
410-
411410
If the buffer size equals the high-water mark,
412411
:meth:`pause_writing` is not called -- it must go strictly over.
413412
Conversely, :meth:`resume_writing` is called when the buffer size is
@@ -416,7 +415,6 @@ buffer size reaches the low-water mark.
416415
mark is zero.
417416

418417
.. note::
419-
420418
On BSD systems (OS X, FreeBSD, etc.) flow control is not supported
421419
for :class:`DatagramProtocol`, because send failures caused by
422420
writing too many packets cannot be detected easily. The socket

Doc/library/asyncio-task.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ and it stores the result into the future. The
269269
the future.
270270

271271
.. note::
272-
273272
The :meth:`~BaseEventLoop.run_until_complete` method uses internally the
274273
:meth:`~Future.add_done_callback` method to be notified when the future is
275274
done.

Doc/library/email.contentmanager.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,7 @@ Currently the email package provides only one concrete content manager,
405405
``message/rfc822``, use ``8bit`` if *cte* is not specified. For all
406406
other values of *subtype*, use ``7bit``.
407407

408-
.. note::
409-
410-
A *cte* of ``binary`` does not actually work correctly yet.
408+
.. note:: A *cte* of ``binary`` does not actually work correctly yet.
411409
The ``Message`` object as modified by ``set_content`` is correct, but
412410
:class:`~email.generator.BytesGenerator` does not serialize it
413411
correctly.

Doc/library/logging.handlers.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,7 @@ supports sending logging messages to a Web server, using either ``GET`` or
864864
:meth:`mapLogRecord` method is used to convert the record to the
865865
dictionary to be sent.
866866

867-
.. note::
868-
869-
Since preparing a record for sending it to a Web server is not
867+
.. note:: Since preparing a record for sending it to a Web server is not
870868
the same as a generic formatting operation, using
871869
:meth:`~logging.Handler.setFormatter` to specify a
872870
:class:`~logging.Formatter` for a :class:`HTTPHandler` has no effect.

Doc/library/multiprocessing.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@ Miscellaneous
851851
:exc:`NotImplementedError`.
852852

853853
.. seealso::
854-
855854
:func:`os.cpu_count`
856855

857856
.. function:: current_process()

Doc/library/os.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ Notes on the availability of these functions:
5757
``'ce'``, ``'java'``.
5858

5959
.. seealso::
60-
6160
:attr:`sys.platform` has a finer granularity. :func:`os.uname` gives
6261
system-dependent version information.
6362

0 commit comments

Comments
 (0)