(self)
| 377 | |
| 378 | # General interaction function |
| 379 | def _cmdloop(self): |
| 380 | while True: |
| 381 | try: |
| 382 | # keyboard interrupts allow for an easy way to cancel |
| 383 | # the current command, so allow them during interactive input |
| 384 | self.allow_kbdint = True |
| 385 | self.cmdloop() |
| 386 | self.allow_kbdint = False |
| 387 | break |
| 388 | except KeyboardInterrupt: |
| 389 | self.message('--KeyboardInterrupt--') |
| 390 | |
| 391 | # Called before loop, handles display expressions |
| 392 | def preloop(self): |
no test coverage detected