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

Skip to content

Commit 767c0a8

Browse files
committed
Mention InterruptedError in the doc for new function signal.sigwaitinfo
1 parent 5a705e7 commit 767c0a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/signal.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ The :mod:`signal` module defines the following functions:
353353
signals in *sigset* is already pending for the calling thread, the function
354354
will return immediately with information about that signal. The signal
355355
handler is not called for the delivered signal. The function raises an
356-
:exc:`OSError` with error number set to :const:`errno.EINTR` if it is
357-
interrupted by a signal that is not in *sigset*.
356+
:exc:`InterruptedError` if it is interrupted by a signal that is not in
357+
*sigset*.
358358

359359
The return value is an object representing the data contained in the
360360
:c:type:`siginfo_t` structure, namely: :attr:`si_signo`, :attr:`si_code`,

0 commit comments

Comments
 (0)