diff options
author | Georg Brandl <georg@python.org> | 2008-05-12 18:03:53 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-12 18:03:53 (GMT) |
commit | c73728373c767119271e3813b3f4d182c845a297 (patch) | |
tree | 54aa05ae41e384c5e415e3c7ddf2d070ab33ead3 | |
parent | 3183585a86d3888f44279abe249afd0cb09057ea (diff) | |
download | cpython-c73728373c767119271e3813b3f4d182c845a297.zip cpython-c73728373c767119271e3813b3f4d182c845a297.tar.gz cpython-c73728373c767119271e3813b3f4d182c845a297.tar.bz2 |
Remove function obsolete since Python 2.3 from traceback module.
-rw-r--r-- | Lib/traceback.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index 0c01ac3..fb1c5ad 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -7,7 +7,7 @@ import types __all__ = ['extract_stack', 'extract_tb', 'format_exception', 'format_exception_only', 'format_list', 'format_stack', 'format_tb', 'print_exc', 'format_exc', 'print_exception', - 'print_last', 'print_stack', 'print_tb', 'tb_lineno'] + 'print_last', 'print_stack', 'print_tb'] def _print(file, str='', terminator='\n'): file.write(str+terminator) @@ -293,10 +293,3 @@ def extract_stack(f=None, limit = None): n = n+1 list.reverse() return list - -def tb_lineno(tb): - """Calculate correct line number of traceback given in tb. - - Obsolete in 2.3. - """ - return tb.tb_lineno |