From 86b689f3d7111a9fa13da389a30f3dfdf877d1a4 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 19 Apr 2014 13:04:09 -0500 Subject: All: *ARGV* and *host-language*. Misc syncing/fixes. --- python/step0_repl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/step0_repl.py') diff --git a/python/step0_repl.py b/python/step0_repl.py index 8d42c33..bb4d6bf 100644 --- a/python/step0_repl.py +++ b/python/step0_repl.py @@ -22,6 +22,7 @@ def PRINT(exp): def REP(str): return PRINT(EVAL(READ(str), {})) +# repl loop while True: try: line = mal_readline.readline("user> ") @@ -29,4 +30,4 @@ while True: if line == "": continue print(REP(line)) except Exception as e: - print "".join(traceback.format_exception(sys.exc_info()[0], sys.exc_info()[1], sys.exc_info()[2])) + print("".join(traceback.format_exception(*sys.exc_info()))) -- cgit v1.2.3