Fix markup
This commit is contained in:
parent
6491413d94
commit
31c754206a
14
pep-3156.txt
14
pep-3156.txt
|
@ -721,17 +721,17 @@ module is supported on Windows.)
|
|||
Signal callbacks
|
||||
''''''''''''''''
|
||||
|
||||
- ``add_signal_handler(sig, callback, *args). Whenever signal ``sig``
|
||||
is received, arrange for ``callback(*args)`` to be called.
|
||||
- ``add_signal_handler(sig, callback, *args)``. Whenever signal
|
||||
``sig`` is received, arrange for ``callback(*args)`` to be called.
|
||||
Specifying another callback for the same signal replaces the
|
||||
previous handler (only one handler can be active per signal). The
|
||||
``sig`` must be a valid sigal number defined in the ``signal``
|
||||
module. If the signal cannot be handled this raises an exception:
|
||||
``ValueError`` if it is not a valid signal or if it is an uncatchable
|
||||
signale (e.g. ``SIGKILL``), ``RuntimeError`` if this particular event
|
||||
loop instance cannot handle signals (since signals are global per
|
||||
process, only an event loop associated with the main thread can
|
||||
handle signals).
|
||||
``ValueError`` if it is not a valid signal or if it is an
|
||||
uncatchable signale (e.g. ``SIGKILL``), ``RuntimeError`` if this
|
||||
particular event loop instance cannot handle signals (since signals
|
||||
are global per process, only an event loop associated with the main
|
||||
thread can handle signals).
|
||||
|
||||
- ``remove_signal_handler(sig)``. Removes the handler for signal
|
||||
``sig``, if one is set. Raises the same exceptions as
|
||||
|
|
Loading…
Reference in New Issue