mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Remove last occurrance of PyArg_GetInt. It is deprecated,
This commit is contained in:
parent
1543c07fdf
commit
7e78acbb1b
1 changed files with 1 additions and 1 deletions
|
@ -969,7 +969,7 @@ PySocketSock_sleeptaskw(PySocketSockObject *s,PyObject *args)
|
|||
{
|
||||
int block;
|
||||
int delay_flag;
|
||||
if (!PyArg_GetInt(args, &block))
|
||||
if (!PyArg_Parse(args, "i", &block))
|
||||
return NULL;
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
socketioctl(s->sock_fd, 0x80046679, (u_long*)&block);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue