mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Kill all uses and definitions of tp_print under Objects/. (Others will follow.)
Finally kill intobject.c, which was #ifdef'ed out a long time ago.
This commit is contained in:
parent
d474ce8c7a
commit
04dbf3b5ec
11 changed files with 11 additions and 1470 deletions
|
@ -279,7 +279,7 @@ internal_print(PyObject *op, FILE *fp, int flags, int nesting)
|
|||
universally available */
|
||||
fprintf(fp, "<refcnt %ld at %p>",
|
||||
(long)op->ob_refcnt, op);
|
||||
else if (Py_Type(op)->tp_print == NULL) {
|
||||
else {
|
||||
PyObject *s;
|
||||
if (flags & Py_PRINT_RAW)
|
||||
s = PyObject_Str(op);
|
||||
|
@ -293,8 +293,6 @@ internal_print(PyObject *op, FILE *fp, int flags, int nesting)
|
|||
}
|
||||
Py_XDECREF(s);
|
||||
}
|
||||
else
|
||||
ret = (*Py_Type(op)->tp_print)(op, fp, flags);
|
||||
}
|
||||
if (ret == 0) {
|
||||
if (ferror(fp)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue