diff options
author | Guido van Rossum <guido@python.org> | 2007-08-07 19:51:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-07 19:51:00 (GMT) |
commit | 04dbf3b5ec618956c9df58ce1d6e3dc089f5f095 (patch) | |
tree | 034a834eb78fe400f52aeaa3eb2cd663e7a78ccd /Objects/boolobject.c | |
parent | d474ce8c7a46edb5ab12c616cd307ab34699a816 (diff) | |
download | cpython-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/boolobject.c')
-rw-r--r-- | Objects/boolobject.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Objects/boolobject.c b/Objects/boolobject.c index 00d8515..3674086 100644 --- a/Objects/boolobject.c +++ b/Objects/boolobject.c @@ -3,15 +3,6 @@ #include "Python.h" #include "longintrepr.h" -/* We need to define bool_print to override int_print */ - -static int -bool_print(PyObject *self, FILE *fp, int flags) -{ - fputs(self == Py_False ? "False" : "True", fp); - return 0; -} - /* We define bool_repr to return "False" or "True" */ static PyObject *false_str = NULL; @@ -148,7 +139,7 @@ PyTypeObject PyBool_Type = { sizeof(struct _longobject), 0, 0, /* tp_dealloc */ - bool_print, /* tp_print */ + 0, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ |