diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-12-12 18:54:29 +0100 |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-12-12 18:54:29 +0100 |
| commit | b15cf649f348f5af9bd8f38405377c5be866a6d8 (patch) | |
| tree | 115ed0dae2541ea5dc8a6b52a37326174c2153b4 /Python/pythonrun.c | |
| parent | c5d84603efd976bf6f060091e397213a92be72d4 (diff) | |
| download | cpython-b15cf649f348f5af9bd8f38405377c5be866a6d8.tar.gz | |
Issue #13575: there is only one class type.
Diffstat (limited to 'Python/pythonrun.c')
| -rw-r--r-- | Python/pythonrun.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index abc9ffc994..c8d1e90074 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -474,7 +474,7 @@ Py_Finalize(void) 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 @@ parse_syntax_error(PyObject *err, PyObject **message, const char **filename, _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))) |
