Skip to content

Commit

Permalink
Remove unneeded Python includes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/84884.1637723223%40sss.pgh.pa.us
  • Loading branch information
petere authored and mrdrivingduck committed May 3, 2024
1 parent 2d0dfda commit a353ed7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pl/plpython/plpython.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ typedef int Py_ssize_t;
#undef TEXTDOMAIN
#define TEXTDOMAIN PG_TEXTDOMAIN("plpython")

#include <compile.h>
#include <eval.h>

/* put back our snprintf and vsnprintf */
#ifdef USE_REPL_SNPRINTF
#ifdef snprintf
Expand Down

0 comments on commit a353ed7

Please sign in to comment.