line_no in utily.py to replace _line
This commit is contained in:
12
utils.py
12
utils.py
@@ -10,3 +10,15 @@ def _line():
|
||||
int: Current line number.
|
||||
"""
|
||||
return currentframe().f_back.f_lineno
|
||||
|
||||
|
||||
def line_no():
|
||||
"""Macro to return the current line number.
|
||||
|
||||
The current line number within the file is used when
|
||||
reporting messages to the message logging window.
|
||||
|
||||
Returns:
|
||||
int: Current line number.
|
||||
"""
|
||||
return currentframe().f_back.f_lineno
|
||||
|
||||
Reference in New Issue
Block a user