Kaydet (Commit) 201be057 authored tarafından Guido van Rossum's avatar Guido van Rossum

Added message to EOFError.

üst 85fc392b
......@@ -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