Call clearerr() after EOF seen.

This commit is contained in:
Guido van Rossum 1991-06-03 10:54:55 +00:00
parent c7ec9c98e2
commit 76ad8ed51d
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ getline(f, n)
for (;;) {
if ((c = getc(fp)) == EOF) {
clearerr(fp);
if (intrcheck()) {
DECREF(v);
err_set(KeyboardInterrupt);