pre_prompt_hook' used to restore the Qt4 input hook (in case the latter was temporarily deactivated after a CTRL+C)
(ishell)
| 159 | return 0 |
| 160 | |
| 161 | def preprompthook_qt4(ishell): |
| 162 | """'pre_prompt_hook' used to restore the Qt4 input hook |
| 163 | |
| 164 | (in case the latter was temporarily deactivated after a |
| 165 | CTRL+C) |
| 166 | """ |
| 167 | global got_kbdint, sigint_timer |
| 168 | |
| 169 | if(sigint_timer): |
| 170 | sigint_timer.cancel() |
| 171 | sigint_timer = None |
| 172 | |
| 173 | if got_kbdint: |
| 174 | mgr.set_inputhook(inputhook_qt4) |
| 175 | got_kbdint = False |
| 176 | |
| 177 | ip._inputhook_qt4 = inputhook_qt4 |
| 178 | ip.set_hook('pre_prompt_hook', preprompthook_qt4) |
nothing calls this directly
no test coverage detected