]> granicus.if.org Git - python/commitdiff
Closes #16657: fix docstring of traceback.format_tb().
authorGeorg Brandl <georg@python.org>
Sun, 13 Oct 2013 21:31:38 +0000 (23:31 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 13 Oct 2013 21:31:38 +0000 (23:31 +0200)
Lib/traceback.py

index da17d3a1f8051ffb29e42babbe100a2d59dd2d3d..5ad2838fcfa5fcd2d8cbb6ff4c07b5c8d30cf92c 100644 (file)
@@ -72,7 +72,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):