]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Closes #16657: fix docstring of traceback.format_tb().
authorGeorg Brandl <georg@python.org>
Sun, 13 Oct 2013 21:32:14 +0000 (23:32 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 13 Oct 2013 21:32:14 +0000 (23:32 +0200)
Lib/traceback.py

index eeb9e7387c73b9b29d165ea6bc6bc64f557464cc..b13bfe2497cd653511119df3ba410529aabb0233 100644 (file)
@@ -71,7 +71,7 @@ def print_tb(tb, limit=None, file=None):
         n = n+1
 
 def format_tb(tb, limit=None):
-    """A shorthand for 'format_list(extract_stack(f, limit))."""
+    """A shorthand for 'format_list(extract_tb(tb, limit))'."""
     return format_list(extract_tb(tb, limit))
 
 def extract_tb(tb, limit=None):