Closes #16657: fix docstring of traceback.format_tb().
This commit is contained in:
parent
72aabb6177
commit
9e091e120b
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue