diff options
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index e24866c..975b788 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -428,7 +428,7 @@ eval_code(co, globals, locals, arg) if (v != None) { flushline(); softspace(sysget("stdout"), 1); - printobject(v, fp, 0); + err = printobject(v, fp, 0); flushline(); } DECREF(v); @@ -447,7 +447,7 @@ eval_code(co, globals, locals, arg) softspace(sysget("stdout"), 0); } else { - printobject(v, fp, 0); + err = printobject(v, fp, 0); } DECREF(v); break; @@ -933,7 +933,8 @@ prtrace(v, str) char *str; { printf("%s ", str); - printobject(v, stdout, 0); + if (printobject(v, stdout, 0) != 0) + err_clear(); /* Don't know what else to do */ printf("\n"); } #endif |