]> granicus.if.org Git - python/commitdiff
Fix parse errors in readline module when compiling without threads.
authorGeorg Brandl <georg@python.org>
Thu, 29 Sep 2005 13:40:49 +0000 (13:40 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 29 Sep 2005 13:40:49 +0000 (13:40 +0000)
Misc/NEWS
Modules/readline.c

index 409126aa09c1f5cb33c026e217671e0ec13b28f2..9703f695ca744d426c8526752ec672f77483b2ae 100644 (file)
--- 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).
 
index 25a43b2341569b92b69c174ab5d6691465f1a9db..f039f1aaf6d2383ee000eaacbd8458a2382b8b1d 100644 (file)
@@ -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;
 }