]> granicus.if.org Git - python/commitdiff
Remove function obsolete since Python 2.3 from traceback module.
authorGeorg Brandl <georg@python.org>
Mon, 12 May 2008 18:03:53 +0000 (18:03 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 12 May 2008 18:03:53 +0000 (18:03 +0000)
Lib/traceback.py

index 0c01ac3bc9c5b4ff692d203fbf87a5c2b902de3b..fb1c5addd88189f8bd3adf62601f73e580260296 100644 (file)
@@ -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