Commit 20f6dede authored by Neal Norwitz's avatar Neal Norwitz

Remove last occurrance of PyArg_GetInt. It is deprecated,

parent a6795963
...@@ -969,7 +969,7 @@ PySocketSock_sleeptaskw(PySocketSockObject *s,PyObject *args) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment