Commit c47bd4a0 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #9294: remove dead code in Objects/object.c. Patch by Grant Limberg.

parent 63c46403
......@@ -479,6 +479,7 @@ Robert van Liere
Ross Light
Shawn Ligocki
Martin Ligr
Grant Limberg
Christopher Lindblad
Bjorn Lindqvist
Per Lindqvist
......
......@@ -258,15 +258,10 @@ _PyObject_NewVar(PyTypeObject *tp, Py_ssize_t nitems)
return PyObject_INIT_VAR(op, tp, nitems);
}
/* Implementation of PyObject_Print with recursion checking */
static int
internal_print(PyObject *op, FILE *fp, int flags, int nesting)
int
PyObject_Print(PyObject *op, FILE *fp, int flags)
{
int ret = 0;
if (nesting > 10) {
PyErr_SetString(PyExc_RuntimeError, "print recursion");
return -1;
}
if (PyErr_CheckSignals())
return -1;
#ifdef USE_STACKCHECK
......@@ -333,12 +328,6 @@ internal_print(PyObject *op, FILE *fp, int flags, int nesting)
return ret;
}
int
PyObject_Print(PyObject *op, FILE *fp, int flags)
{
return internal_print(op, fp, flags, 0);
}
/* For debugging convenience. Set a breakpoint here and call it from your DLL */
void
_Py_BreakPoint(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment