Fix parse errors in readline module when compiling without threads.

This commit is contained in:
Georg Brandl 2005-09-29 13:40:49 +00:00
parent e53475ddd1
commit e677adc43a
2 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,8 @@ present).
Extension Modules Extension Modules
----------------- -----------------
- Fix parse errors in the readline module when compiling without threads.
- Patch #1288833: Removed thread lock from socket.getaddrinfo on - Patch #1288833: Removed thread lock from socket.getaddrinfo on
FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3). FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3).

View File

@ -603,6 +603,7 @@ on_hook(PyObject *func)
#ifdef WITH_THREAD #ifdef WITH_THREAD
PyGILState_Release(gilstate); PyGILState_Release(gilstate);
#endif #endif
return result;
} }
return result; return result;
} }
@ -655,6 +656,7 @@ on_completion(char *text, int state)
#ifdef WITH_THREAD #ifdef WITH_THREAD
PyGILState_Release(gilstate); PyGILState_Release(gilstate);
#endif #endif
return result;
} }
return result; return result;
} }