aboutsummaryrefslogtreecommitdiff
path: root/python/step0_repl.py
diff options
context:
space:
mode:
authorjames sangho nah <sangho.nah@gmail.com>2015-03-07 09:32:23 +1300
committerjames sangho nah <sangho.nah@gmail.com>2015-03-07 09:32:23 +1300
commit8e4628da2ca6962fc4359a2a4881304a48ad48ea (patch)
treeaa7991af43e72151652bfebd1ead0ea0e25aa122 /python/step0_repl.py
parent55a253cbce32b854e4f062798aa90989d4bcda79 (diff)
downloadmal-8e4628da2ca6962fc4359a2a4881304a48ad48ea.tar.gz
mal-8e4628da2ca6962fc4359a2a4881304a48ad48ea.zip
compatible with python 3
Diffstat (limited to 'python/step0_repl.py')
-rw-r--r--python/step0_repl.py2
1 files changed, 1 insertions, 1 deletions
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