Actually show a traceback. Subclasses may override this method to put the traceback on a different place, like a side channel.
(self, etype, evalue, stb)
| 2059 | print('\n' + self.get_exception_only(), file=sys.stderr) |
| 2060 | |
| 2061 | def _showtraceback(self, etype, evalue, stb): |
| 2062 | """Actually show a traceback. |
| 2063 | |
| 2064 | Subclasses may override this method to put the traceback on a different |
| 2065 | place, like a side channel. |
| 2066 | """ |
| 2067 | print(self.InteractiveTB.stb2text(stb)) |
| 2068 | |
| 2069 | def showsyntaxerror(self, filename=None, running_compiled_code=False): |
| 2070 | """Display the syntax error that just occurred. |
no test coverage detected