Skip to content

Commit 7fe50a2

Browse files
committed
py_ext: use PyVarObject_HEAD instead of PyObject_HEAD_INIT
1 parent 96536e3 commit 7fe50a2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎py_ext/tlshmodule.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,7 @@ static PyGetSetDef Tlsh_getsetters[] = {
286286
};
287287

288288
static PyTypeObject tlsh_TlshType = {
289-
PyObject_HEAD_INIT(NULL)
290-
#if PY_MAJOR_VERSION < 3
291-
0, /* ob_size */
292-
#endif
289+
PyVarObject_HEAD_INIT(NULL, 0)
293290
"tlsh.Tlsh", /* tp_name */
294291
sizeof(tlsh_TlshObject), /* tp_basicsize */
295292
0, /* tp_itemsize */

0 commit comments

Comments
 (0)