Commit 9c3105f7 authored by Stefan Behnel's avatar Stefan Behnel

fix CPython version check for tp_finalize()

parent 45a17f1a
......@@ -789,7 +789,7 @@ slot_table = (
EmptySlot("tp_del"),
EmptySlot("tp_version_tag", ifdef="PY_VERSION_HEX >= 0x02060000"),
# TODO: change __dealloc__ to be called by tp_finalize (PEP 442)
EmptySlot("tp_finalize", ifdef="PY_VERSION_HEX >= 0x03040a00"),
EmptySlot("tp_finalize", ifdef="PY_VERSION_HEX >= 0x030400a1"),
)
#------------------------------------------------------------------------------------------
......
......@@ -634,7 +634,7 @@ static PyTypeObject __pyx_CyFunctionType_type = {
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
#if PY_VERSION_HEX >= 0x03040a00
#if PY_VERSION_HEX >= 0x030400a1
0, /*tp_finalize*/
#endif
};
......@@ -1082,7 +1082,7 @@ static PyTypeObject __pyx_FusedFunctionType_type = {
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
#if PY_VERSION_HEX >= 0x03040a00
#if PY_VERSION_HEX >= 0x030400a1
0, /*tp_finalize*/
#endif
};
......
......@@ -608,7 +608,7 @@ static PyTypeObject __pyx_GeneratorType_type = {
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
#if PY_VERSION_HEX >= 0x03040a00
#if PY_VERSION_HEX >= 0x030400a1
0, /*tp_finalize*/
#endif
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment