diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 34201f8d042d0b..ba725b7611edaf 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -420,7 +420,7 @@ PyOS_Readline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt) else { rv = (*PyOS_ReadlineFunctionPointer)(sys_stdin, sys_stdout, prompt); } - + _PyOS_ReadlineTState = NULL; PyThread_release_lock(_PyOS_ReadlineLock); Py_END_ALLOW_THREADS