summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-24 13:26:41 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-24 13:26:41 (GMT)
commit201be057fb85a508679a0e51686355c29e5eea79 (patch)
tree967df1c7e685cbe6de36fe3e0fef8a453fdcdc4e
parent85fc392b9e73998bbc1e983fc70068be2a2cacd0 (diff)
downloadcpython-201be057fb85a508679a0e51686355c29e5eea79.zip
cpython-201be057fb85a508679a0e51686355c29e5eea79.tar.gz
cpython-201be057fb85a508679a0e51686355c29e5eea79.tar.bz2
Added message to EOFError.
-rw-r--r--Objects/fileobject.c3
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;