Add InterruptedError for EINTR

This commit is contained in:
Antoine Pitrou 2011-07-27 00:44:35 +02:00
parent 089008558c
commit c15f626cbd
1 changed files with 4 additions and 0 deletions

View File

@ -376,6 +376,9 @@ the list of errnos mapped to them, is submitted to discussion:
for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS); for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS);
this is the existing ``io.BlockingIOError`` with an extended role this is the existing ``io.BlockingIOError`` with an extended role
* ``InterruptedError``: a system call was interrupted by an incoming signal
(EINTR)
* ``ConnectionAbortedError``: connection attempt aborted by peer (ECONNABORTED) * ``ConnectionAbortedError``: connection attempt aborted by peer (ECONNABORTED)
* ``ConnectionRefusedError``: connection reset by peer (ECONNREFUSED) * ``ConnectionRefusedError``: connection reset by peer (ECONNREFUSED)
@ -409,6 +412,7 @@ shown::
+-- FileNotFoundError ENOENT +-- FileNotFoundError ENOENT
+-- IsADirectoryError EISDIR +-- IsADirectoryError EISDIR
+-- NotADirectoryError ENOTDIR +-- NotADirectoryError ENOTDIR
+-- InterruptedError EINTR
+-- PermissionError EACCES, EPERM +-- PermissionError EACCES, EPERM
+-- TimeoutError ETIMEDOUT +-- TimeoutError ETIMEDOUT