[Python-checkins] python/dist/src/Python compile.c,2.281,2.282
mwh@users.sourceforge.net
mwh@users.sourceforge.net
Tue, 29 Apr 2003 10:07:38 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv13205/Python
Modified Files:
compile.c
Log Message:
Use Tim's suggestion to fix
[ 708901 ] Lineno calculation sometimes broken
A one line patch to compile.c and a rather-more-than-one-line patch
to test_dis. Hey ho.
Possibly a backport candidate -- tho' lnotab is less used in 2.2...
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.281
retrieving revision 2.282
diff -C2 -d -r2.281 -r2.282
*** compile.c 24 Apr 2003 05:45:23 -0000 2.281
--- compile.c 29 Apr 2003 17:07:34 -0000 2.282
***************
*** 3367,3371 ****
com_addbyte(c, GET_ITER);
c->c_begin = c->c_nexti;
! com_set_lineno(c, n->n_lineno);
com_addfwref(c, FOR_ITER, &anchor);
com_push(c, 1);
--- 3367,3371 ----
com_addbyte(c, GET_ITER);
c->c_begin = c->c_nexti;
! com_set_lineno(c, c->c_last_line);
com_addfwref(c, FOR_ITER, &anchor);
com_push(c, 1);