gh-102799: Let pydoc use the exception instead of sys.exc_info by iritkatriel · Pull Request #102830 · python/cpython
| if not isinstance(exc_info, tuple): | |
| assert isinstance(exc_info, BaseException) | |
| exc_info = type(exc_info), exc_info, exc_info.__traceback__ | |
| self.filename = filename | |
| self.exc, self.value, self.tb = exc_info | |
| self.filename = filename | |
| if isinstance(exc_info, tuple): | |
| self.exc, self.value, self.tb = exc_info | |
| else: | |
| assert isinstance(exc_info, BaseException) | |
| self.exc = type(exc_info) | |
| self.value = exc_info | |
| self.tb = exc_info.__traceback__ |