summaryrefslogtreecommitdiffstats
path: root/Modules/sgimodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-04-02 18:26:33 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-04-02 18:26:33 (GMT)
commitb0aaec5706237c1086afbbbb9327be59509a6d83 (patch)
tree4ca3c7e378cd98882105354d197d4d4783f53632 /Modules/sgimodule.c
parent187ae561667f82142edbe7beaa612381b6bb0827 (diff)
downloadcpython-b0aaec5706237c1086afbbbb9327be59509a6d83.zip
cpython-b0aaec5706237c1086afbbbb9327be59509a6d83.tar.gz
cpython-b0aaec5706237c1086afbbbb9327be59509a6d83.tar.bz2
Convert more METH_OLDARGS & PyArg_Parse()
Please review.
Diffstat (limited to 'Modules/sgimodule.c')
-rw-r--r--Modules/sgimodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/sgimodule.c b/Modules/sgimodule.c
index 4c96f04..f7e1263 100644
--- a/Modules/sgimodule.c
+++ b/Modules/sgimodule.c
@@ -11,7 +11,7 @@ static PyObject *
sgi_nap(PyObject *self, PyObject *args)
{
long ticks;
- if (!PyArg_Parse(args, "l", &ticks))
+ if (!PyArg_ParseTuple(args, "l:nap", &ticks))
return NULL;
Py_BEGIN_ALLOW_THREADS
sginap(ticks);
@@ -30,7 +30,7 @@ sgi__getpty(PyObject *self, PyObject *args)
int nofork;
char *name;
int fildes;
- if (!PyArg_Parse(args, "(iii)", &oflag, &mode, &nofork))
+ if (!PyArg_ParseTuple(args, "iii:_getpty", &oflag, &mode, &nofork))
return NULL;
errno = 0;
name = _getpty(&fildes, oflag, (mode_t)mode, nofork);
@@ -42,8 +42,8 @@ sgi__getpty(PyObject *self, PyObject *args)
}
static PyMethodDef sgi_methods[] = {
- {"nap", sgi_nap, METH_OLDARGS},
- {"_getpty", sgi__getpty, METH_OLDARGS},
+ {"nap", sgi_nap, METH_VARARGS},
+ {"_getpty", sgi__getpty, METH_VARARGS},
{NULL, NULL} /* sentinel */
};