diff options
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c index b62477a..ee9c271 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -168,6 +168,7 @@ PyObject_Print(op, fp, flags) return -1; } #endif + clearerr(fp); /* Clear any previous error condition */ if (op == NULL) { fprintf(fp, "<nil>"); } |