Fix for PY3
This commit is contained in:
parent
17d3cef4bd
commit
8689d62f02
1 changed files with 3 additions and 1 deletions
|
|
@ -530,9 +530,11 @@ static PyGetSetDef Capsule_getseters[] = {
|
|||
};
|
||||
|
||||
static PyTypeObject CapsuleType = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_MAJOR_VERSION < 3)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /*ob_size*/
|
||||
#else
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#endif
|
||||
"_capsule.Capsule", /*tp_name*/
|
||||
sizeof(CapsuleObject), /*tp_basicsize*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue