diff options
author | Andres Freund | 2022-03-08 02:30:28 +0000 |
---|---|---|
committer | Andres Freund | 2022-03-08 02:30:28 +0000 |
commit | 9b7e24a2cb37fb52af13219f625cd719e364a346 (patch) | |
tree | c35fe718f0a8d8723631b5759a47e37bfb6f7fbf /src/pl/plpython/plpy_plpymodule.h | |
parent | db23464715f4792298c639153dda7bfd9ad9d602 (diff) |
plpython: Code cleanup related to removal of Python 2 support.
Since 19252e8ec93 we reject Python 2 during build configuration. Now that the
dust on the buildfarm has settled, remove Python 2 specific code, including
the "Python 2/3 porting layer".
The code to detect conflicts between plpython using Python 2 and 3 is not
removed, in case somebody creates an out-of-tree version adding back support
for Python 2.
Reviewed-By: Peter Eisentraut <[email protected]>
Reviewed-By: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/pl/plpython/plpy_plpymodule.h')
-rw-r--r-- | src/pl/plpython/plpy_plpymodule.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pl/plpython/plpy_plpymodule.h b/src/pl/plpython/plpy_plpymodule.h index 54d78101ceb..ad6436aca78 100644 --- a/src/pl/plpython/plpy_plpymodule.h +++ b/src/pl/plpython/plpy_plpymodule.h @@ -11,9 +11,7 @@ extern HTAB *PLy_spi_exceptions; -#if PY_MAJOR_VERSION >= 3 PyMODINIT_FUNC PyInit_plpy(void); -#endif extern void PLy_init_plpy(void); #endif /* PLPY_PLPYMODULE_H */ |