Issue #24266: Merge readline Ctrl+C handling from 3.5

This commit is contained in:
Martin Panter 2016-03-22 09:28:58 +00:00
commit 0b2d71bc70
2 changed files with 6 additions and 0 deletions

View File

@ -232,6 +232,9 @@ Core and Builtins
Library
-------
- Issue #24266: Ctrl+C during Readline history search now cancels the search
mode when compiled with Readline 7.
- Issue #26590: Implement a safe finalizer for the _socket.socket type. It now
releases the GIL to close the socket.

View File

@ -1138,6 +1138,9 @@ readline_until_enter_or_signal(const char *prompt, int *signal)
#endif
if (s < 0) {
rl_free_line_state();
#if defined(RL_READLINE_VERSION) && RL_READLINE_VERSION >= 0x0700
rl_callback_sigcleanup();
#endif
rl_cleanup_after_signal();
rl_callback_handler_remove();
*signal = 1;