(self)
| 322 | |
| 323 | # General interaction function |
| 324 | def _cmdloop(self): |
| 325 | while True: |
| 326 | try: |
| 327 | # keyboard interrupts allow for an easy way to cancel |
| 328 | # the current command, so allow them during interactive input |
| 329 | self.allow_kbdint = True |
| 330 | self.cmdloop() |
| 331 | self.allow_kbdint = False |
| 332 | break |
| 333 | except KeyboardInterrupt: |
| 334 | self.message('--KeyboardInterrupt--') |
| 335 | |
| 336 | # Called before loop, handles display expressions |
| 337 | def preloop(self): |
no test coverage detected