Commit 8ab8475a authored by Kevin Modzelewski's avatar Kevin Modzelewski

Minor fix

parent b865059e
......@@ -2078,7 +2078,7 @@ extern "C" void printExprHelper(Box* obj) {
Box* displayhook = PySys_GetObject("displayhook");
if (!displayhook)
raiseExcHelper(RuntimeError, "lost sys.displayhook");
runtimeCall(displayhook, ArgPassSpec(1), obj, 0, 0, 0, 0);
autoDecref(runtimeCall(displayhook, ArgPassSpec(1), obj, 0, 0, 0, 0));
}
static ASTInterpreter* getInterpreterFromFramePtr(void* frame_ptr) {
......
# expected: reffail
c = compile("a = 1; print a", "test.py", "exec")
print type(c), c.co_filename, c.co_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment