diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-16 07:46:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-16 07:46:38 (GMT) |
commit | 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0 (patch) | |
tree | c1b3aacf87240d393666321d49a5abde3e1d601f /Modules/selectmodule.c | |
parent | fdbd01151dbd5feea3e4c0316d102db3d2a2a412 (diff) | |
download | cpython-55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0.zip cpython-55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0.tar.gz cpython-55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0.tar.bz2 |
bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r-- | Modules/selectmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 6f71d58..0b9b5da 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -768,7 +768,7 @@ static int devpoll_flush(devpollObject *self) ** the wild. ** See http://bugs.python.org/issue6397. */ - PyErr_Format(PyExc_IOError, "failed to write all pollfds. " + PyErr_Format(PyExc_OSError, "failed to write all pollfds. " "Please, report at http://bugs.python.org/. " "Data to report: Size tried: %d, actual size written: %d.", size, n); @@ -948,7 +948,7 @@ devpoll_poll(devpollObject *self, PyObject *args) } while (1); if (poll_result < 0) { - PyErr_SetFromErrno(PyExc_IOError); + PyErr_SetFromErrno(PyExc_OSError); return NULL; } |