summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 05:49:33 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 05:49:33 (GMT)
commitac3625fcb95c2c54e40e1a27f2395811adbed03e (patch)
tree7ef987a510e3ad2e43ee67ca6854cd6af23673f9 /Lib/traceback.py
parentfc85c92a85e08d39ea769a07a3dc2a3c83c21477 (diff)
downloadcpython-ac3625fcb95c2c54e40e1a27f2395811adbed03e.zip
cpython-ac3625fcb95c2c54e40e1a27f2395811adbed03e.tar.gz
cpython-ac3625fcb95c2c54e40e1a27f2395811adbed03e.tar.bz2
Remove sys.exc_type, sys.exc_value, sys.exc_traceback
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r--Lib/traceback.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index 4971906..93a64b7 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -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: