From: Neal N. <nno...@us...> - 2004-06-05 16:43:00
|
Update of /cvsroot/pychecker/pychecker/pychecker In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27187/pychecker Modified Files: CodeChecks.py Log Message: support LIST_APPEND which was added in py2.4 Index: CodeChecks.py =================================================================== RCS file: /cvsroot/pychecker/pychecker/pychecker/CodeChecks.py,v retrieving revision 1.150 retrieving revision 1.151 diff -C2 -d -r1.150 -r1.151 *** CodeChecks.py 5 Jun 2004 15:28:57 -0000 1.150 --- CodeChecks.py 5 Jun 2004 16:42:51 -0000 1.151 *************** *** 1407,1410 **** --- 1407,1413 ---- code.pushStack(newValue) + def _LIST_APPEND(oparg, operand, codeSource, code): + code.popStackItems(2) + def _modifyStackName(code, suffix): if code.stack: *************** *** 1807,1811 **** DISPATCH[ 13] = _UNARY_CONVERT DISPATCH[ 15] = _UNARY_INVERT ! # FIXME: add LIST_APPEND: 18 DISPATCH[ 19] = _BINARY_POWER DISPATCH[ 20] = _BINARY_MULTIPLY --- 1810,1814 ---- DISPATCH[ 13] = _UNARY_CONVERT DISPATCH[ 15] = _UNARY_INVERT ! DISPATCH[ 18] = _LIST_APPEND DISPATCH[ 19] = _BINARY_POWER DISPATCH[ 20] = _BINARY_MULTIPLY |