Kaydet (Commit) 76ad8ed5 authored tarafından Guido van Rossum's avatar Guido van Rossum

Call clearerr() after EOF seen.

üst c7ec9c98
......@@ -311,6 +311,7 @@ getline(f, n)
for (;;) {
if ((c = getc(fp)) == EOF) {
clearerr(fp);
if (intrcheck()) {
DECREF(v);
err_set(KeyboardInterrupt);
......
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