summaryrefslogtreecommitdiffstats
path: root/PC/_winreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'PC/_winreg.c')
-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 */