diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-09-08 18:21:54 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-09-08 18:21:54 (GMT) |
commit | 940f33a50f3877cbde7adb59ba6e1a0a0acd3d11 (patch) | |
tree | 7a326f041f1187cdbd6622e7eb97ceb2af6c0d44 /Modules/signalmodule.c | |
parent | dee6e252cc59c3143786f3e4cfaa1a6c335381b6 (diff) | |
download | cpython-940f33a50f3877cbde7adb59ba6e1a0a0acd3d11.zip cpython-940f33a50f3877cbde7adb59ba6e1a0a0acd3d11.tar.gz cpython-940f33a50f3877cbde7adb59ba6e1a0a0acd3d11.tar.bz2 |
Issue #23524: Finish removing _PyVerify_fd from sources
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index e078091..7eef0b5 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -579,7 +579,7 @@ signal_set_wakeup_fd(PyObject *self, PyObject *args) } fd = (int)sockfd; - if ((SOCKET_T)fd != sockfd || !_PyVerify_fd(fd)) { + if ((SOCKET_T)fd != sockfd) { PyErr_SetString(PyExc_ValueError, "invalid fd"); return NULL; } @@ -609,11 +609,6 @@ signal_set_wakeup_fd(PyObject *self, PyObject *args) if (fd != -1) { int blocking; - if (!_PyVerify_fd(fd)) { - PyErr_SetString(PyExc_ValueError, "invalid fd"); - return NULL; - } - if (_Py_fstat(fd, &status) != 0) return NULL; |