From 80c7bcf667b49c9c62dffeb9e433613f2c94e87f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 29 Aug 1998 16:03:27 +0000 Subject: [PATCH] The previous fix was still broken; the Py_END_ALLOW_THREADS macro was never executed because of a return statement. Sigh. --- Parser/myreadline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 56c343aa6d0..d6261398cb3 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -140,10 +140,12 @@ char * PyOS_Readline(prompt) char *prompt; { + char *rv; if (PyOS_ReadlineFunctionPointer == NULL) { PyOS_ReadlineFunctionPointer = PyOS_StdioReadline; } Py_BEGIN_ALLOW_THREADS - return (*PyOS_ReadlineFunctionPointer)(prompt); + rv = (*PyOS_ReadlineFunctionPointer)(prompt); Py_END_ALLOW_THREADS + return rv; }