2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-28 07:22:31 +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 69c42614e6
6 changed files with 13 additions and 14 deletions

View File

@@ -93,7 +93,7 @@ PyObject* make_nurse_and_patient(PyObject* nurse, PyObject* patient)
if (Py_TYPE(&life_support_type) == 0)
{
Py_TYPE(&life_support_type) = &PyType_Type;
Py_SET_TYPE(&life_support_type, &PyType_Type);
PyType_Ready(&life_support_type);
}