Skip to content

Commit 32c393f

Browse files
committed
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
1 parent 363a6e8 commit 32c393f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/pl/plpython/plpy_exec.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,13 +1066,7 @@ PLy_procedure_call(PLyProcedure *proc, const char *kargs, PyObject *vargs)
10661066

10671067
PG_TRY();
10681068
{
1069-
#if PY_VERSION_HEX >= 0x03020000
1070-
rv = PyEval_EvalCode(proc->code,
1071-
proc->globals, proc->globals);
1072-
#else
1073-
rv = PyEval_EvalCode((PyCodeObject *) proc->code,
1074-
proc->globals, proc->globals);
1075-
#endif
1069+
rv = PyEval_EvalCode(proc->code, proc->globals, proc->globals);
10761070

10771071
/*
10781072
* Since plpy will only let you close subtransactions that you

0 commit comments

Comments
 (0)