line_no in utily.py to replace _line

This commit is contained in:
2023-11-17 11:23:56 +01:00
parent a1359cca84
commit fd212a441d

View File

@@ -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