]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added message to EOFError.
authorGuido van Rossum <guido@python.org>
Tue, 24 Dec 1991 13:26:41 +0000 (13:26 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 24 Dec 1991 13:26:41 +0000 (13:26 +0000)
Objects/fileobject.c

index 1f1dcae65d99c34eb72ba1098fa339173acbf200..db9a088eb1deda71ea65114c30cea75e48cd8653 100644 (file)
@@ -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;