]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
In case there ever will be a 2.1.3, this fixes SF bug #514928 (Bastian
authorGuido van Rossum <guido@python.org>
Fri, 8 Feb 2002 21:32:41 +0000 (21:32 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 8 Feb 2002 21:32:41 +0000 (21:32 +0000)
Kleineidam): curses error in w.border().

For some reason, in 2.1.2 and before, PyCursesWindow_Border is
declared as METH_VARARGS but calls PyArg_Parse(), which is wrong.

(This is not relevant for 2.2, which does this completely different
and makes all functions METH_VARARGS.)

Modules/_cursesmodule.c

index 0cc04370c3c0d61e0efaf4e54c3c8639805d1df8..7456207f904627a90f41dea25d46ec5657f6748d 100644 (file)
@@ -563,7 +563,7 @@ PyCursesWindow_Border(PyCursesWindowObject *self, PyObject *args)
 {
   chtype ls, rs, ts, bs, tl, tr, bl, br;
   ls = rs = ts = bs = tl = tr = bl = br = 0;
-  if (!PyArg_Parse(args,"|llllllll;ls,rs,ts,bs,tl,tr,bl,br",
+  if (!PyArg_ParseTuple(args,"|llllllll;ls,rs,ts,bs,tl,tr,bl,br",
                         &ls, &rs, &ts, &bs, &tl, &tr, &bl, &br))
     return NULL;
   wborder(self->win, ls, rs, ts, bs, tl, tr, bl, br);