From 8e4628da2ca6962fc4359a2a4881304a48ad48ea Mon Sep 17 00:00:00 2001 From: james sangho nah Date: Sat, 7 Mar 2015 09:32:23 +1300 Subject: compatible with python 3 --- python/step0_repl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/step0_repl.py') diff --git a/python/step0_repl.py b/python/step0_repl.py index bb4d6bf..d915989 100644 --- a/python/step0_repl.py +++ b/python/step0_repl.py @@ -11,7 +11,7 @@ def EVAL(ast, env): try: return eval(ast) except SyntaxError: - exec compile(ast, '', 'single') in globals() + exec(compile(ast, '', 'single'), globals()) return None # print -- cgit v1.2.3