mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #9294: remove dead code in Objects/object.c. Patch by Grant Limberg.
This commit is contained in:
parent
63c4640327
commit
c47bd4a09a
2 changed files with 3 additions and 13 deletions
|
@ -479,6 +479,7 @@ Robert van Liere
|
||||||
Ross Light
|
Ross Light
|
||||||
Shawn Ligocki
|
Shawn Ligocki
|
||||||
Martin Ligr
|
Martin Ligr
|
||||||
|
Grant Limberg
|
||||||
Christopher Lindblad
|
Christopher Lindblad
|
||||||
Bjorn Lindqvist
|
Bjorn Lindqvist
|
||||||
Per Lindqvist
|
Per Lindqvist
|
||||||
|
|
|
@ -258,15 +258,10 @@ _PyObject_NewVar(PyTypeObject *tp, Py_ssize_t nitems)
|
||||||
return PyObject_INIT_VAR(op, tp, nitems);
|
return PyObject_INIT_VAR(op, tp, nitems);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Implementation of PyObject_Print with recursion checking */
|
int
|
||||||
static int
|
PyObject_Print(PyObject *op, FILE *fp, int flags)
|
||||||
internal_print(PyObject *op, FILE *fp, int flags, int nesting)
|
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
if (nesting > 10) {
|
|
||||||
PyErr_SetString(PyExc_RuntimeError, "print recursion");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
if (PyErr_CheckSignals())
|
if (PyErr_CheckSignals())
|
||||||
return -1;
|
return -1;
|
||||||
#ifdef USE_STACKCHECK
|
#ifdef USE_STACKCHECK
|
||||||
|
@ -333,12 +328,6 @@ internal_print(PyObject *op, FILE *fp, int flags, int nesting)
|
||||||
return ret;
|
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 */
|
/* For debugging convenience. Set a breakpoint here and call it from your DLL */
|
||||||
void
|
void
|
||||||
_Py_BreakPoint(void)
|
_Py_BreakPoint(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue