Skip to content

Commit 119c19e

Browse files
committed
fix: tp_traverse is not inherited
1 parent 5c79e13 commit 119c19e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_hashopenssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,8 @@ PyDoc_STRVAR(HASHXOFobject_type_doc,
11761176
"digest_size -- number of bytes in this hashes output");
11771177

11781178
static PyType_Slot HASHXOFobject_type_slots[] = {
1179-
/* tp_dealloc and tp_traverse are inherited from _hashlib.HASH */
1179+
/* tp_dealloc is inherited from _hashlib.HASH */
1180+
{Py_tp_traverse, _hashlib_HASH_traverse},
11801181
{Py_tp_doc, (char *)HASHXOFobject_type_doc},
11811182
{Py_tp_methods, HASHXOFobject_methods},
11821183
{Py_tp_getset, HASHXOFobject_getsets},

0 commit comments

Comments
 (0)