summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-03-25 22:23:53 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-03-25 22:23:53 (GMT)
commit7e78acbb1b6c0ea50f059da6e0eb45ff50b93cc4 (patch)
treedd2e5de0cddae3b3bf1f4260fdb93e7cd24ecfa0
parent1543c07fdf1468dd4266934cc0f42d258e7c35ee (diff)
downloadcpython-7e78acbb1b6c0ea50f059da6e0eb45ff50b93cc4.zip
cpython-7e78acbb1b6c0ea50f059da6e0eb45ff50b93cc4.tar.gz
cpython-7e78acbb1b6c0ea50f059da6e0eb45ff50b93cc4.tar.bz2
Remove last occurrance of PyArg_GetInt. It is deprecated,
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 4f35b32..42605ba 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);