]> granicus.if.org Git - python/commitdiff
Remove last occurrance of PyArg_GetInt. It is deprecated,
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 25 Mar 2002 22:23:53 +0000 (22:23 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 25 Mar 2002 22:23:53 +0000 (22:23 +0000)
Modules/socketmodule.c

index 4f35b32bc0a45bc907785ac2d8d9e37156ddd32d..42605ba260111c2571da4610803f13ea8bc11980 100644 (file)
@@ -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);