mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Added message to EOFError.
This commit is contained in:
parent
85fc392b9e
commit
201be057fb
1 changed files with 2 additions and 1 deletions
|
@ -342,7 +342,8 @@ getline(f, n)
|
||||||
}
|
}
|
||||||
if (n < 0 && buf == BUF(v)) {
|
if (n < 0 && buf == BUF(v)) {
|
||||||
DECREF(v);
|
DECREF(v);
|
||||||
err_set(EOFError);
|
err_setstr(EOFError,
|
||||||
|
"EOF when reading a line");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue