Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 5534:84d3cca814fb legacy-trunk
Remove the last three uses of PyArg_GetInt() from the source.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 15 May 1997 19:09:26 +0000 |
| parents | cf818b70da3e |
| children | b231855a9474 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Thu May 15 18:27:49 1997 +0000 +++ b/Modules/socketmodule.c Thu May 15 19:09:26 1997 +0000 @@ -522,7 +522,7 @@ #ifndef MS_WINDOWS int delay_flag; #endif - if (!PyArg_GetInt(args, &block)) + if (!PyArg_Parse(args, "i", &block)) return NULL; Py_BEGIN_ALLOW_THREADS #ifndef MS_WINDOWS @@ -766,7 +766,7 @@ { int backlog; int res; - if (!PyArg_GetInt(args, &backlog)) + if (!PyArg_Parse(args, "i", &backlog)) return NULL; Py_BEGIN_ALLOW_THREADS if (backlog < 1) @@ -938,7 +938,7 @@ { int how; int res; - if (!PyArg_GetInt(args, &how)) + if (!PyArg_Parse(args, "i", &how)) return NULL; Py_BEGIN_ALLOW_THREADS res = shutdown(s->sock_fd, how);
