mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #23524: Finish removing _PyVerify_fd from sources
This commit is contained in:
parent
dee6e252cc
commit
940f33a50f
10 changed files with 27 additions and 258 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue