From: Neal N. <nno...@us...> - 2002-09-28 23:59:40
|
Update of /cvsroot/pychecker/pychecker/pychecker In directory usw-pr-cvs1:/tmp/cvs-serv28484/pychecker Modified Files: CodeChecks.py Log Message: i have no idea how closures work, this fixes a crash on cgitb when there is a lambda which references function variables Index: CodeChecks.py =================================================================== RCS file: /cvsroot/pychecker/pychecker/pychecker/CodeChecks.py,v retrieving revision 1.130 retrieving revision 1.131 diff -C2 -d -r1.130 -r1.131 *** CodeChecks.py 28 Sep 2002 23:07:52 -0000 1.130 --- CodeChecks.py 28 Sep 2002 23:59:37 -0000 1.131 *************** *** 1279,1283 **** def _MAKE_CLOSURE(oparg, operand, codeSource, code) : ! _MAKE_FUNCTION(oparg - 1, operand, codeSource, code) def _BUILD_MAP(oparg, operand, codeSource, code) : --- 1279,1283 ---- def _MAKE_CLOSURE(oparg, operand, codeSource, code) : ! _MAKE_FUNCTION(max(0, oparg - 1), operand, codeSource, code) def _BUILD_MAP(oparg, operand, codeSource, code) : |