Remove sys.exc_type, sys.exc_value, sys.exc_traceback

This commit is contained in:
Neal Norwitz 2006-03-17 05:49:33 +00:00
parent fc85c92a85
commit ac3625fcb9
16 changed files with 36 additions and 58 deletions

View file

@ -203,9 +203,7 @@ def _some_str(value):
def print_exc(limit=None, file=None):
"""Shorthand for 'print_exception(sys.exc_type, sys.exc_value, sys.exc_traceback, limit, file)'.
(In fact, it uses sys.exc_info() to retrieve the same information
in a thread-safe way.)"""
"""Shorthand for 'print_exception(*sys.exc_info(), limit, file)'."""
if file is None:
file = sys.stderr
try: