mirror of https://github.com/python/cpython
Remove last occurrance of PyArg_GetInt. It is deprecated,
This commit is contained in:
parent
1543c07fdf
commit
7e78acbb1b
|
@ -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…
Reference in New Issue