Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c737283

Browse files
committed
Remove function obsolete since Python 2.3 from traceback module.
1 parent 3183585 commit c737283

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Lib/traceback.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
__all__ = ['extract_stack', 'extract_tb', 'format_exception',
88
'format_exception_only', 'format_list', 'format_stack',
99
'format_tb', 'print_exc', 'format_exc', 'print_exception',
10-
'print_last', 'print_stack', 'print_tb', 'tb_lineno']
10+
'print_last', 'print_stack', 'print_tb']
1111

1212
def _print(file, str='', terminator='\n'):
1313
file.write(str+terminator)
@@ -293,10 +293,3 @@ def extract_stack(f=None, limit = None):
293293
n = n+1
294294
list.reverse()
295295
return list
296-
297-
def tb_lineno(tb):
298-
"""Calculate correct line number of traceback given in tb.
299-
300-
Obsolete in 2.3.
301-
"""
302-
return tb.tb_lineno

0 commit comments

Comments
 (0)