pre_prompt_hook' used to restore the Qt4 input hook (in case the latter was temporarily deactivated after a CTRL+C)
(ishell)
| 177 | return 0 |
| 178 | |
| 179 | def preprompthook_qt4(ishell): |
| 180 | """'pre_prompt_hook' used to restore the Qt4 input hook |
| 181 | |
| 182 | (in case the latter was temporarily deactivated after a |
| 183 | CTRL+C) |
| 184 | """ |
| 185 | global got_kbdint, sigint_timer |
| 186 | |
| 187 | if sigint_timer: |
| 188 | sigint_timer.cancel() |
| 189 | sigint_timer = None |
| 190 | |
| 191 | if got_kbdint: |
| 192 | mgr.set_inputhook(inputhook_qt4) |
| 193 | got_kbdint = False |
| 194 | |
| 195 | ip._inputhook_qt4 = inputhook_qt4 |
| 196 | ip.set_hook("pre_prompt_hook", preprompthook_qt4) |
nothing calls this directly
no test coverage detected