mirror of
https://github.com/python/cpython.git
synced 2025-10-15 11:22:18 +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 block;
|
||||||
int delay_flag;
|
int delay_flag;
|
||||||
if (!PyArg_GetInt(args, &block))
|
if (!PyArg_Parse(args, "i", &block))
|
||||||
return NULL;
|
return NULL;
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
socketioctl(s->sock_fd, 0x80046679, (u_long*)&block);
|
socketioctl(s->sock_fd, 0x80046679, (u_long*)&block);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue