mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Use IOError.
This commit is contained in:
parent
bd3a2e6b11
commit
2912f22afc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue