(self, etype=None, value=None, tb=None,
tb_offset=None, number_of_lines_of_context=5)
| 1424 | print("\nKeyboardInterrupt") |
| 1425 | |
| 1426 | def structured_traceback(self, etype=None, value=None, tb=None, |
| 1427 | tb_offset=None, number_of_lines_of_context=5): |
| 1428 | if etype is None: |
| 1429 | etype, value, tb = sys.exc_info() |
| 1430 | if isinstance(tb, tuple): |
| 1431 | # tb is a tuple if this is a chained exception. |
| 1432 | self.tb = tb[0] |
| 1433 | else: |
| 1434 | self.tb = tb |
| 1435 | return FormattedTB.structured_traceback( |
| 1436 | self, etype, value, tb, tb_offset, number_of_lines_of_context) |
| 1437 | |
| 1438 | |
| 1439 | #--------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected