Skip to content
Permalink
Browse files

Removed useless eval on execute_on_goto_gosub

  • Loading branch information...
daitangio committed Mar 20, 2019
1 parent 1eab0ad commit 6f93f2575ac9dcda8379b5d0e9fd0e15a00437d4
Showing with 2 additions and 4 deletions.
  1. +2 −4 pyc64/basic.py
@@ -436,14 +436,12 @@ def execute_on_goto_gosub(self,cmd):
targetLineList=l2[3:]
else:
raise BasicError("syntax")
targetLineList=targetLineList.strip()
# Make a tuple of the target list
lineTargetTuple=eval("("+targetLineList+")")
lineTargetTuple=targetLineList.strip().split(",")
goInx=cmd.find("go")
expr=cmd[0:goInx]
# eval the on <expr> goto part
onGoIndex=int(eval(expr,self.symbols))-1
line=lineTargetTuple[onGoIndex]
line=int(lineTargetTuple[onGoIndex])
if gosub==False:
if not self.running_program:
self.execute_run("run " + str(line))

0 comments on commit 6f93f25

Please sign in to comment.
You can’t perform that action at this time.