From: Georg Brandl Date: Thu, 29 Sep 2005 13:40:49 +0000 (+0000) Subject: Fix parse errors in readline module when compiling without threads. X-Git-Tag: v2.5a0~1332 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e677adc43acf9176ffe81b9956aeb7a643258239;p=thirdparty%2FPython%2Fcpython.git Fix parse errors in readline module when compiling without threads. --- diff --git a/Misc/NEWS b/Misc/NEWS index 409126aa09c1..9703f695ca74 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -153,6 +153,8 @@ present). Extension Modules ----------------- +- Fix parse errors in the readline module when compiling without threads. + - Patch #1288833: Removed thread lock from socket.getaddrinfo on FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3). diff --git a/Modules/readline.c b/Modules/readline.c index 25a43b234156..f039f1aaf6d2 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -603,6 +603,7 @@ on_hook(PyObject *func) #ifdef WITH_THREAD PyGILState_Release(gilstate); #endif + return result; } return result; } @@ -655,6 +656,7 @@ on_completion(char *text, int state) #ifdef WITH_THREAD PyGILState_Release(gilstate); #endif + return result; } return result; }