mirror of https://github.com/python/cpython
Use IOError.
This commit is contained in:
parent
bd3a2e6b11
commit
2912f22afc
|
@ -86,7 +86,7 @@ printobject(op, fp, flags)
|
|||
}
|
||||
if (ret == 0) {
|
||||
if (ferror(fp)) {
|
||||
err_errno(RuntimeError);
|
||||
err_errno(IOError);
|
||||
clearerr(fp);
|
||||
ret = -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue