mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-45855: Replaced deprecated PyImport_ImportModuleNoBlock with PyImport_ImportModule (GH-30046)
This commit is contained in:
parent
e6fe10d340
commit
41026c3155
12 changed files with 17 additions and 16 deletions
|
|
@ -765,7 +765,7 @@ signal_set_wakeup_fd(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
is_socket = 0;
|
||||
if (sockfd != INVALID_FD) {
|
||||
/* Import the _socket module to call WSAStartup() */
|
||||
mod = PyImport_ImportModuleNoBlock("_socket");
|
||||
mod = PyImport_ImportModule("_socket");
|
||||
if (mod == NULL)
|
||||
return NULL;
|
||||
Py_DECREF(mod);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue