Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e78acb

Browse files
committed
Remove last occurrance of PyArg_GetInt. It is deprecated,
1 parent 1543c07 commit 7e78acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ PySocketSock_sleeptaskw(PySocketSockObject *s,PyObject *args)
969969
{
970970
int block;
971971
int delay_flag;
972-
if (!PyArg_GetInt(args, &block))
972+
if (!PyArg_Parse(args, "i", &block))
973973
return NULL;
974974
Py_BEGIN_ALLOW_THREADS
975975
socketioctl(s->sock_fd, 0x80046679, (u_long*)&block);

0 commit comments

Comments
 (0)