Use IOError.

This commit is contained in:
Guido van Rossum 1991-12-10 13:59:09 +00:00
parent bd3a2e6b11
commit 2912f22afc

View file

@ -86,7 +86,7 @@ printobject(op, fp, flags)
}
if (ret == 0) {
if (ferror(fp)) {
err_errno(RuntimeError);
err_errno(IOError);
clearerr(fp);
ret = -1;
}