gh-101100: Fix Sphinx warnings in Doc/library/signal.rst (GH-139930)

This commit is contained in:
Weilin Du 2025-10-12 02:26:48 +08:00 committed by GitHub
parent cdd3eee7fc
commit 447c7a89fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -270,7 +270,7 @@ The variables defined in the :mod:`signal` module are:
All the signal numbers are defined symbolically. For example, the hangup signal All the signal numbers are defined symbolically. For example, the hangup signal
is defined as :const:`signal.SIGHUP`; the variable names are identical to the is defined as :const:`signal.SIGHUP`; the variable names are identical to the
names used in C programs, as found in ``<signal.h>``. The Unix man page for names used in C programs, as found in ``<signal.h>``. The Unix man page for
':c:func:`signal`' lists the existing signals (on some systems this is '``signal``' lists the existing signals (on some systems this is
:manpage:`signal(2)`, on others the list is in :manpage:`signal(7)`). Note that :manpage:`signal(2)`, on others the list is in :manpage:`signal(7)`). Note that
not all systems define the same set of signal names; only those names defined by not all systems define the same set of signal names; only those names defined by
the system are defined by this module. the system are defined by this module.
@ -666,9 +666,8 @@ The :mod:`signal` module defines the following functions:
*sigset*. *sigset*.
The return value is an object representing the data contained in the The return value is an object representing the data contained in the
:c:type:`siginfo_t` structure, namely: :attr:`si_signo`, :attr:`si_code`, ``siginfo_t`` structure, namely: ``si_signo``, ``si_code``,
:attr:`si_errno`, :attr:`si_pid`, :attr:`si_uid`, :attr:`si_status`, ``si_errno``, ``si_pid``, ``si_uid``, ``si_status``, ``si_band``.
:attr:`si_band`.
.. availability:: Unix. .. availability:: Unix.

View file

@ -29,7 +29,6 @@ Doc/library/profile.rst
Doc/library/pyexpat.rst Doc/library/pyexpat.rst
Doc/library/resource.rst Doc/library/resource.rst
Doc/library/select.rst Doc/library/select.rst
Doc/library/signal.rst
Doc/library/smtplib.rst Doc/library/smtplib.rst
Doc/library/socket.rst Doc/library/socket.rst
Doc/library/ssl.rst Doc/library/ssl.rst