From 0353b4eaaf451ad463ce7eb3074f6b62d332f401 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 31 Oct 2018 02:28:07 +0200 Subject: bpo-33138: Change standard error message for non-pickleable and non-copyable types. (GH-6239) --- Modules/_io/winconsoleio.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Modules/_io/winconsoleio.c') diff --git a/Modules/_io/winconsoleio.c b/Modules/_io/winconsoleio.c index 13342ec239..148255c354 100644 --- a/Modules/_io/winconsoleio.c +++ b/Modules/_io/winconsoleio.c @@ -1060,14 +1060,6 @@ _io__WindowsConsoleIO_isatty_impl(winconsoleio *self) Py_RETURN_TRUE; } -static PyObject * -winconsoleio_getstate(winconsoleio *self, PyObject *Py_UNUSED(ignored)) -{ - PyErr_Format(PyExc_TypeError, - "cannot serialize '%s' object", Py_TYPE(self)->tp_name); - return NULL; -} - #include "clinic/winconsoleio.c.h" static PyMethodDef winconsoleio_methods[] = { @@ -1080,7 +1072,6 @@ static PyMethodDef winconsoleio_methods[] = { _IO__WINDOWSCONSOLEIO_WRITABLE_METHODDEF _IO__WINDOWSCONSOLEIO_FILENO_METHODDEF _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF - {"__getstate__", (PyCFunction)winconsoleio_getstate, METH_NOARGS, NULL}, {NULL, NULL} /* sentinel */ }; -- cgit v1.2.1