Commit 1ceb9419 authored by Jeremy Hylton's avatar Jeremy Hylton

Get rid of unused local function HAS_ARG(). HAS_ARG() referenced a

free variable HAVE_ARGUMENT that was not defined at the global scope.
Calling it would have raised a NameError.
parent 2bba0297
......@@ -84,8 +84,8 @@
##############################################################################
"""Very Safe Python Expressions
"""
__rcs_id__='$Id: VSEval.py,v 1.23 1999/10/28 18:02:41 brian Exp $'
__version__='$Revision: 1.23 $'[11:-2]
__rcs_id__='$Id: VSEval.py,v 1.24 2001/03/30 16:40:52 jeremy Exp $'
__version__='$Revision: 1.24 $'[11:-2]
from string import translate, strip
import string
......@@ -181,7 +181,6 @@ class Eval:
l=len(code)
LOAD_NAME=101
HAVE_ARGUMENT=90
def HAS_ARG(op): ((op) >= HAVE_ARGUMENT)
while(i < l):
c=ord(code[i])
if c==LOAD_NAME:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment