From dc2e5cebdfae77bdf93280a0e1a8ad0fd4b9e319 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 8 Feb 2002 21:32:41 +0000 Subject: [PATCH] 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.) --- Modules/_cursesmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3