summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-07 19:51:00 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-07 19:51:00 (GMT)
commit04dbf3b5ec618956c9df58ce1d6e3dc089f5f095 (patch)
tree034a834eb78fe400f52aeaa3eb2cd663e7a78ccd /Objects/object.c
parentd474ce8c7a46edb5ab12c616cd307ab34699a816 (diff)
downloadcpython-04dbf3b5ec618956c9df58ce1d6e3dc089f5f095.zip
cpython-04dbf3b5ec618956c9df58ce1d6e3dc089f5f095.tar.gz
cpython-04dbf3b5ec618956c9df58ce1d6e3dc089f5f095.tar.bz2
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.
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/object.c b/Objects/object.c
index a725022..3eaf6fa 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -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)) {