Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 201be05

Browse files
committed
Added message to EOFError.
1 parent 85fc392 commit 201be05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Objects/fileobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ getline(f, n)
342342
}
343343
if (n < 0 && buf == BUF(v)) {
344344
DECREF(v);
345-
err_set(EOFError);
345+
err_setstr(EOFError,
346+
"EOF when reading a line");
346347
return NULL;
347348
}
348349
break;

0 commit comments

Comments
 (0)