summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-22 14:45:56 (GMT)
committerGitHub <noreply@github.com>2023-07-22 14:45:56 (GMT)
commitd228825e08883fc13f35eb91435f95d32524931c (patch)
tree5d886d54a07638519b238fb32daa3586a239f76b /Modules
parente5252c6127ad788b39221982964f935bd1513028 (diff)
downloadcpython-d228825e08883fc13f35eb91435f95d32524931c.zip
cpython-d228825e08883fc13f35eb91435f95d32524931c.tar.gz
cpython-d228825e08883fc13f35eb91435f95d32524931c.tar.bz2
gh-106320: Remove _PyOS_ReadlineTState API (#107034)
Remove _PyOS_ReadlineTState variable from the public C API. The symbol is still exported for the readline shared extension.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/readline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index a592919..6729a09 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -1313,6 +1313,9 @@ rlhandler(char *text)
static char *
readline_until_enter_or_signal(const char *prompt, int *signal)
{
+ // Defined in Parser/myreadline.c
+ extern PyThreadState *_PyOS_ReadlineTState;
+
char * not_done_reading = "";
fd_set selectset;