diff --git a/Lib/io.py b/Lib/io.py index a185a18b94b..978e833c253 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -47,7 +47,7 @@ "Mike Verdone , " "Mark Russell , " "Antoine Pitrou , " - "Amaury Forgeotdarc ") + "Amaury Forgeot d'Arc ") __all__ = ["BlockingIOError", "open", "IOBase", "RawIOBase", "FileIO", "BytesIO", "StringIO", "BufferedIOBase", diff --git a/Modules/_iobase.c b/Modules/_iobase.c index 9ee23264eef..b5fef5bc77f 100644 --- a/Modules/_iobase.c +++ b/Modules/_iobase.c @@ -459,9 +459,6 @@ IOBase_readline(PyObject *self, PyObject *args) return NULL; } - if (_PyIOBase_checkClosed(self, Py_True) == NULL) - return NULL; - if (PyObject_HasAttrString(self, "peek")) has_peek = 1;