summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-16 14:24:29 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-16 14:24:29 (GMT)
commit2ad07c301e03a83294752dd3d30c99125c09106b (patch)
treee28f2ffef6989778d316f7dd8701bdf758b3f12c /Lib/traceback.py
parent7b1c41417fb0166801bcb7bb8e9b23acdaa9009e (diff)
downloadcpython-2ad07c301e03a83294752dd3d30c99125c09106b.zip
cpython-2ad07c301e03a83294752dd3d30c99125c09106b.tar.gz
cpython-2ad07c301e03a83294752dd3d30c99125c09106b.tar.bz2
Small PEP8 correction.
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r--Lib/traceback.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index 5f92415..c0d8061 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -70,11 +70,11 @@ def print_tb(tb, limit=None, file=None):
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 @@ def format_stack(f=None, limit=None):
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