From 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 16 Apr 2017 10:46:38 +0300 Subject: =?UTF-8?q?bpo-30022:=20Get=20rid=20of=20using=20EnvironmentError?= =?UTF-8?q?=20and=20IOError=20(except=20test=E2=80=A6=20(#1051)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Modules/selectmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/selectmodule.c') diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 6f71d58556..0b9b5da912 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; } -- cgit v1.2.1