Skip to content

Commit b11b937

Browse files
committed
Fix python3 module init
1 parent a08baa1 commit b11b937

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

python/python3/pyiptcdata.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,7 @@ static PyMethodDef methods[] = {
258258
};
259259

260260
PyTypeObject Data_Type = {
261-
/* The ob_type field must be initialized in the module init function
262-
* to be portable to Windows without using C++. */
263-
PyObject_HEAD_INIT(NULL)
264-
0, /*ob_size*/
261+
PyVarObject_HEAD_INIT(NULL, 0)
265262
"iptcdatamodule.Data", /*tp_name*/
266263
sizeof(DataObject), /*tp_basicsize*/
267264
0, /*tp_itemsize*/

python/python3/pyiptcdataset.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ PyTypeObject DataSet_Type = {
342342
/* The ob_type field must be initialized in the module init function
343343
* to be portable to Windows without using C++. */
344344
PyVarObject_HEAD_INIT(NULL, 0)
345-
0, /*ob_size*/
346345
"iptcdatamodule.DataSet", /*tp_name*/
347346
sizeof(DataSetObject), /*tp_basicsize*/
348347
0, /*tp_itemsize*/

0 commit comments

Comments
 (0)