[Python-checkins] CVS: python/dist/src/Modules _cursesmodule.c,2.51,2.51.2.1
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 08 Feb 2002 13:32:44 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv1604
Modified Files:
Tag: release21-maint
_cursesmodule.c
Log Message:
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.)
Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.51
retrieving revision 2.51.2.1
diff -C2 -d -r2.51 -r2.51.2.1
*** _cursesmodule.c 10 Apr 2001 19:53:37 -0000 2.51
--- _cursesmodule.c 8 Feb 2002 21:32:41 -0000 2.51.2.1
***************
*** 564,568 ****
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",
&ls, &rs, &ts, &bs, &tl, &tr, &bl, &br))
return NULL;
--- 564,568 ----
chtype ls, rs, ts, bs, tl, tr, bl, br;
ls = rs = ts = bs = tl = tr = bl = br = 0;
! if (!PyArg_ParseTuple(args,"|llllllll;ls,rs,ts,bs,tl,tr,bl,br",
&ls, &rs, &ts, &bs, &tl, &tr, &bl, &br))
return NULL;