Skip to content

Commit a83b1ba

Browse files
committed
Remove unneeded Python includes
Inluding <compile.h> and <eval.h> has not been necessary since Python 2.4, since they are included via <Python.h>. Morever, <eval.h> is being removed in Python 3.11. So remove these includes. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/84884.1637723223%40sss.pgh.pa.us
1 parent dffe80e commit a83b1ba

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/pl/plpython/plpython.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ typedef int Py_ssize_t;
121121
#undef TEXTDOMAIN
122122
#define TEXTDOMAIN PG_TEXTDOMAIN("plpython")
123123

124-
#include <compile.h>
125-
#include <eval.h>
126-
127124
/* put back our snprintf and vsnprintf */
128125
#ifdef USE_REPL_SNPRINTF
129126
#ifdef snprintf

0 commit comments

Comments
 (0)