From: Guido van Rossum Date: Fri, 8 Feb 2002 21:32:41 +0000 (+0000) Subject: In case there ever will be a 2.1.3, this fixes SF bug #514928 (Bastian X-Git-Tag: v2.1.3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc2e5cebdfae77bdf93280a0e1a8ad0fd4b9e319;p=thirdparty%2FPython%2Fcpython.git In case there ever will be a 2.1.3, this fixes SF bug #514928 (Bastian 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.) --- diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 0cc04370c3c0..7456207f9046 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -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);