[Python-checkins] r74829 - python/branches/py3k/Lib/traceback.py
georg.brandl
python-checkins at python.org
Wed Sep 16 16:24:29 CEST 2009
Author: georg.brandl
Date: Wed Sep 16 16:24:29 2009
New Revision: 74829
Log:
Small PEP8 correction.
Modified:
python/branches/py3k/Lib/traceback.py
Modified: python/branches/py3k/Lib/traceback.py
==============================================================================
--- python/branches/py3k/Lib/traceback.py (original)
+++ python/branches/py3k/Lib/traceback.py Wed Sep 16 16:24:29 2009
@@ -70,11 +70,11 @@
tb = tb.tb_next
n = n+1
-def format_tb(tb, limit = None):
+def format_tb(tb, limit=None):
"""A shorthand for 'format_list(extract_stack(f, limit))."""
return format_list(extract_tb(tb, limit))
-def extract_tb(tb, limit = None):
+def extract_tb(tb, limit=None):
"""Return list of up to limit pre-processed entries from traceback.
This is useful for alternate formatting of stack traces. If
@@ -304,7 +304,7 @@
f = sys.exc_info()[2].tb_frame.f_back
return format_list(extract_stack(f, limit))
-def extract_stack(f=None, limit = None):
+def extract_stack(f=None, limit=None):
"""Extract the raw traceback from the current stack frame.
The return value has the same format as for extract_tb(). The
More information about the Python-checkins
mailing list