Added message to EOFError.

This commit is contained in:
Guido van Rossum 1991-12-24 13:26:41 +00:00
parent 85fc392b9e
commit 201be057fb

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;