diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-05-22 07:16:44 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-05-22 07:16:44 +0000 |
commit | a84dcd7546c929187a9ae2b620a0d0cc01efc9bb (patch) | |
tree | 53060eb67767e6332a8f2a54d85890a466d01dd2 /Modules/_cursesmodule.c | |
parent | Stop using METH_OLDARGS (diff) | |
download | cpython-a84dcd7546c929187a9ae2b620a0d0cc01efc9bb.tar.gz cpython-a84dcd7546c929187a9ae2b620a0d0cc01efc9bb.tar.bz2 cpython-a84dcd7546c929187a9ae2b620a0d0cc01efc9bb.zip |
Stop using METH_OLDARGS implicitly
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index a67f559d12b..1ee407e5095 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -1299,7 +1299,7 @@ static PyObject * PyCursesWindow_RedrawLine(PyCursesWindowObject *self, PyObject *args) { int beg, num; - if (!PyArg_ParseTuple(args,"ii;beg,num", &beg, &num)) + if (!PyArg_ParseTuple(args, "ii;beg,num", &beg, &num)) return NULL; return PyCursesCheckERR(wredrawln(self->win,beg,num), "redrawln"); } @@ -1533,7 +1533,7 @@ static PyMethodDef PyCursesWindow_Methods[] = { {"overwrite", (PyCFunction)PyCursesWindow_Overwrite, METH_VARARGS}, {"putwin", (PyCFunction)PyCursesWindow_PutWin, METH_VARARGS}, - {"redrawln", (PyCFunction)PyCursesWindow_RedrawLine}, + {"redrawln", (PyCFunction)PyCursesWindow_RedrawLine, METH_VARARGS}, {"redrawwin", (PyCFunction)PyCursesWindow_redrawwin, METH_NOARGS}, {"refresh", (PyCFunction)PyCursesWindow_Refresh, METH_VARARGS}, #ifndef STRICT_SYSV_CURSES |