]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
PyEval_ThreadsInitialized was deprecated in 3.9
authorNick Porter <nick@portercomputing.co.uk>
Tue, 17 Sep 2024 16:13:57 +0000 (17:13 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 17 Sep 2024 16:13:57 +0000 (17:13 +0100)
src/modules/rlm_python3/rlm_python3.c

index 31a76b5d2de084387886140c15b0a2bf4e17c638..fed6ec658ab4195b87bb695471b27b85db7aac93 100644 (file)
@@ -1174,7 +1174,9 @@ static int python_interpreter_init(rlm_python_t *inst, CONF_SECTION *conf)
                main_interpreter = PyThreadState_Get(); /* Store reference to the main interpreter */
                locked = true;
        }
+#if PY_VERSION_HEX < 0x03090000
        rad_assert(PyEval_ThreadsInitialized());
+#endif
 
        /*
         *      Increment the reference counter