Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 73949:021e5bb297d1
Issue #13575: there is only one class type.
| author | Florent Xicluna <florent.xicluna@gmail.com> |
|---|---|
| date | Mon, 12 Dec 2011 18:54:29 +0100 |
| parents | c86fb10eaf68 |
| children | 87331661042b |
line wrap: on
line diff
--- a/Python/pythonrun.c Mon Dec 12 13:47:25 2011 +0100 +++ b/Python/pythonrun.c Mon Dec 12 18:54:29 2011 +0100 @@ -474,7 +474,7 @@ flush_std_files(); /* Collect final garbage. This disposes of cycles created by - * new-style class definitions, for example. + * class definitions, for example. * XXX This is disabled because it caused too many problems. If * XXX a __del__ or weakref callback triggers here, Python code has * XXX a hard time running, because even the sys module has been @@ -1348,11 +1348,6 @@ _Py_IDENTIFIER(offset); _Py_IDENTIFIER(text); - /* old style errors */ - if (PyTuple_Check(err)) - return PyArg_ParseTuple(err, "O(ziiz)", message, filename, - lineno, offset, text); - /* new style errors. `err' is an instance */ if (! (v = _PyObject_GetAttrId(err, &PyId_msg)))
