diff Modules/_cursesmodule.c @ 41816:ec83d21065aa legacy-trunk

Stop using METH_OLDARGS implicitly
author Neal Norwitz <nnorwitz@gmail.com>
date Tue, 22 May 2007 07:16:44 +0000
parents 15f34ad4681b
children 6620a510e9a9
line wrap: on
line diff
--- a/Modules/_cursesmodule.c	Tue May 22 07:16:10 2007 +0000
+++ b/Modules/_cursesmodule.c	Tue May 22 07:16:44 2007 +0000
@@ -1299,7 +1299,7 @@
 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 @@
 	{"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