Added message to EOFError.

This commit is contained in:
Guido van Rossum 1991-12-24 13:26:41 +00:00
parent 85fc392b9e
commit 201be057fb
1 changed files with 2 additions and 1 deletions

View File

@ -342,7 +342,8 @@ getline(f, n)
}
if (n < 0 && buf == BUF(v)) {
DECREF(v);
err_set(EOFError);
err_setstr(EOFError,
"EOF when reading a line");
return NULL;
}
break;