PyAPI: remove Python 3.7x compatibility code
This removes Python version checks needed to build with 3.8+ and 3.7x. Ref D10381
This commit is contained in:
@@ -169,15 +169,11 @@ static PyGetSetDef BPy_Id_getseters[] = {
|
||||
/*-----------------------BPy_Id type definition ------------------------------*/
|
||||
|
||||
PyTypeObject Id_Type = {
|
||||
PyVarObject_HEAD_INIT(nullptr, 0) "Id", /* tp_name */
|
||||
sizeof(BPy_Id), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
(destructor)Id_dealloc, /* tp_dealloc */
|
||||
#if PY_VERSION_HEX >= 0x03080000
|
||||
0, /* tp_vectorcall_offset */
|
||||
#else
|
||||
nullptr, /* tp_print */
|
||||
#endif
|
||||
PyVarObject_HEAD_INIT(nullptr, 0) "Id", /* tp_name */
|
||||
sizeof(BPy_Id), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
(destructor)Id_dealloc, /* tp_dealloc */
|
||||
0, /* tp_vectorcall_offset */
|
||||
nullptr, /* tp_getattr */
|
||||
nullptr, /* tp_setattr */
|
||||
nullptr, /* tp_reserved */
|
||||
|
||||
Reference in New Issue
Block a user