Commit 43abfff9 authored by Guido van Rossum's avatar Guido van Rossum

Added message to EOFError.

parent 08d8b3ce
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment