From e677adc43acf9176ffe81b9956aeb7a643258239 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 29 Sep 2005 13:40:49 +0000 Subject: Fix parse errors in readline module when compiling without threads. --- Misc/NEWS | 2 ++ Modules/readline.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index 409126a..9703f69 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 25a43b2..f039f1a 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; } -- cgit v0.12