diff options
author | Guido van Rossum <guido@python.org> | 1991-12-24 13:26:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-24 13:26:41 (GMT) |
commit | 201be057fb85a508679a0e51686355c29e5eea79 (patch) | |
tree | 967df1c7e685cbe6de36fe3e0fef8a453fdcdc4e | |
parent | 85fc392b9e73998bbc1e983fc70068be2a2cacd0 (diff) | |
download | cpython-201be057fb85a508679a0e51686355c29e5eea79.zip cpython-201be057fb85a508679a0e51686355c29e5eea79.tar.gz cpython-201be057fb85a508679a0e51686355c29e5eea79.tar.bz2 |
Added message to EOFError.
-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; |