diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-02-25 14:11:38 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-02-25 14:11:38 +0100 |
commit | 32c393f9f1f148febcd741e7067e9537825587cc (patch) | |
tree | 70ec47053ae26d02a31346ae83ceadb1decc229a | |
parent | 363a6e8c6fcf9f3e19fe673ae02554645974a388 (diff) | |
download | postgresql-32c393f9f1f148febcd741e7067e9537825587cc.tar.gz postgresql-32c393f9f1f148febcd741e7067e9537825587cc.zip |
Remove obsolete Python version check
The checked version is already the current minimum supported version
(3.2).
Discussion: https://www.postgresql.org/message-id/flat/ee410de1-1e0b-4770-b125-eeefd4726a24@eisentraut.org
-rw-r--r-- | src/pl/plpython/plpy_exec.c | 8 |
1 files changed, 1 insertions, 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 |