gh-102799: replace sys.exc_info by sys.exception in inspect and traceback modules (#104032)

2 files changed