From: Neal Norwitz Date: Mon, 25 Mar 2002 22:23:53 +0000 (+0000) Subject: Remove last occurrance of PyArg_GetInt. It is deprecated, X-Git-Tag: v2.3c1~6330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e78acbb1b6c0ea50f059da6e0eb45ff50b93cc4;p=python Remove last occurrance of PyArg_GetInt. It is deprecated, --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 4f35b32bc0..42605ba260 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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);