From de060db5d56379ac81be07a6d04a32ad07b6dbad Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 22 Feb 2023 20:26:58 +0100 Subject: [PATCH] Minimal changes to support python 3.11 --- python3/python_support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python3/python_support.c b/python3/python_support.c index e72d5391..c5bc87ad 100644 --- a/python3/python_support.c +++ b/python3/python_support.c @@ -813,13 +813,13 @@ PyAPI_FUNC(PyObject *) PyFile_FromString PyCodeObject* ada_pyframe_get_code (PyFrameObject* obj) { - return obj->f_code; + return PyFrame_GetCode(obj);; } PyFrameObject* ada_pyframe_get_back (PyFrameObject* obj) { - return obj->f_back; + return PyFrame_GetBack(obj); } PyObject*