mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Issue #24266: Merge readline Ctrl+C handling from 3.5
This commit is contained in:
commit
0b2d71bc70
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue