2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

Fix Python 3.10 (PEP-620) incompatibility.

This commit is contained in:
Stefan Seefeld
2020-11-13 21:17:24 -05:00
parent cd953cff06
commit 500194edb7
6 changed files with 13 additions and 14 deletions

View File

@@ -153,7 +153,7 @@ namespace
{
if (enum_type_object.tp_dict == 0)
{
Py_TYPE(&enum_type_object) = incref(&PyType_Type);
Py_SET_TYPE(&enum_type_object, incref(&PyType_Type));
#if PY_VERSION_HEX >= 0x03000000
enum_type_object.tp_base = &PyLong_Type;
#else