read text from REPL, don't eval
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ def repl(stack=(), dictionary=None):
|
|||||||
print(stack_to_string(stack), '<-top')
|
print(stack_to_string(stack), '<-top')
|
||||||
print()
|
print()
|
||||||
try:
|
try:
|
||||||
text = eval(input('joy? '))
|
text = input('joy? ')
|
||||||
except (EOFError, KeyboardInterrupt):
|
except (EOFError, KeyboardInterrupt):
|
||||||
break
|
break
|
||||||
viewer = TracePrinter()
|
viewer = TracePrinter()
|
||||||
|
|||||||
Reference in New Issue
Block a user