summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-07 19:58:47 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-07 19:58:47 (GMT)
commit346f1a82bd525b3053d18a5b130ef2e70d4c1858 (patch)
treeadd400c9a261d9354d0de2d7fbc6adc8512b269a /PC
parent04dbf3b5ec618956c9df58ce1d6e3dc089f5f095 (diff)
downloadcpython-346f1a82bd525b3053d18a5b130ef2e70d4c1858.zip
cpython-346f1a82bd525b3053d18a5b130ef2e70d4c1858.tar.gz
cpython-346f1a82bd525b3053d18a5b130ef2e70d4c1858.tar.bz2
Kill remaining tp_print definitions.
Diffstat (limited to 'PC')
-rw-r--r--PC/_winreg.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/PC/_winreg.c b/PC/_winreg.c
index ecb723c..c294653 100644
--- a/PC/_winreg.c
+++ b/PC/_winreg.c
@@ -387,17 +387,6 @@ PyHKEY_intFunc(PyObject *ob)
return PyLong_FromVoidPtr(pyhkey->hkey);
}
-static int
-PyHKEY_printFunc(PyObject *ob, FILE *fp, int flags)
-{
- PyHKEYObject *pyhkey = (PyHKEYObject *)ob;
- char resBuf[160];
- wsprintf(resBuf, "<PyHKEY at %p (%p)>",
- ob, pyhkey->hkey);
- fputs(resBuf, fp);
- return 0;
-}
-
static PyObject *
PyHKEY_strFunc(PyObject *ob)
{
@@ -464,7 +453,7 @@ PyTypeObject PyHKEY_Type =
sizeof(PyHKEYObject),
0,
PyHKEY_deallocFunc, /* tp_dealloc */
- PyHKEY_printFunc, /* tp_print */
+ 0, /* tp_print */
PyHKEY_getattr, /* tp_getattr */
0, /* tp_setattr */
PyHKEY_compareFunc, /* tp_compare */