]> granicus.if.org Git - python/commitdiff
Mention InterruptedError in the doc for new function signal.sigwaitinfo
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 23 Oct 2011 21:52:23 +0000 (23:52 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 23 Oct 2011 21:52:23 +0000 (23:52 +0200)
Doc/library/signal.rst

index cbb9534d1e92f587ea9125d3147fa5698fd3dfbb..4fc3fd6405c624cf06a8700df180df371d14386b 100644 (file)
@@ -353,8 +353,8 @@ The :mod:`signal` module defines the following functions:
    signals in *sigset* is already pending for the calling thread, the function
    will return immediately with information about that signal. The signal
    handler is not called for the delivered signal. The function raises an
-   :exc:`OSError` with error number set to :const:`errno.EINTR` if it is
-   interrupted by a signal that is not in *sigset*.
+   :exc:`InterruptedError` if it is interrupted by a signal that is not in
+   *sigset*.
 
    The return value is an object representing the data contained in the
    :c:type:`siginfo_t` structure, namely: :attr:`si_signo`, :attr:`si_code`,