diff options
author | Guido van Rossum <guido@python.org> | 1997-05-15 19:09:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-15 19:09:26 (GMT) |
commit | fe28fa05e9c08978fa6e162ddf64e873c84cdc9a (patch) | |
tree | 990a05cb413f850477642e53b921b95c19ea9580 | |
parent | 4c4d5ce78a9be16fac5e979d40e917a79736f04e (diff) | |
download | cpython-fe28fa05e9c08978fa6e162ddf64e873c84cdc9a.zip cpython-fe28fa05e9c08978fa6e162ddf64e873c84cdc9a.tar.gz cpython-fe28fa05e9c08978fa6e162ddf64e873c84cdc9a.tar.bz2 |
Remove the last three uses of PyArg_GetInt() from the source.
-rw-r--r-- | Modules/socketmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index bcc3fb2..52aca56 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -522,7 +522,7 @@ BUILD_FUNC_DEF_2(PySocketSock_setblocking,PySocketSockObject*,s,PyObject*,args) #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 @@ BUILD_FUNC_DEF_2(PySocketSock_listen,PySocketSockObject *,s, PyObject *,args) { 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 @@ BUILD_FUNC_DEF_2(PySocketSock_shutdown,PySocketSockObject *,s, PyObject *,args) { 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); |