diff options
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 1f1dcae..db9a088 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -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; |