From 76d4e4b628f9e7913b5c361dbbd4c0ea9d570146 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 2 Dec 2024 08:53:42 +0100 Subject: [PATCH 1/2] Remove obsolete Python version check The checked version is already the current minimum supported version (3.2). --- src/pl/plpython/plpy_exec.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pl/plpython/plpy_exec.c b/src/pl/plpython/plpy_exec.c index 0e84bb90829..00747bb811b 100644 --- a/src/pl/plpython/plpy_exec.c +++ b/src/pl/plpython/plpy_exec.c @@ -1066,13 +1066,7 @@ PLy_procedure_call(PLyProcedure *proc, const char *kargs, PyObject *vargs) PG_TRY(); { -#if PY_VERSION_HEX >= 0x03020000 - rv = PyEval_EvalCode(proc->code, - proc->globals, proc->globals); -#else - rv = PyEval_EvalCode((PyCodeObject *) proc->code, - proc->globals, proc->globals); -#endif + rv = PyEval_EvalCode(proc->code, proc->globals, proc->globals); /* * Since plpy will only let you close subtransactions that you base-commit: 2f696453d2b39fea800d5f7d8e5d3e1a2266de24 -- 2.47.1