print out warning with line number and rest of arguments
Definition at line 21 of file __init__.py.
21 def warn (*args, **kwargs):
22 """print out warning with line number and rest of arguments"""
24 frame = inspect.stack()[1]
28 blankLines = kwargs.get(
'blankLines', 0)
30 print(
'\n' * blankLines)
31 spaces = kwargs.get(
'spaces', 0)
33 print(
' ' * spaces, end=
' ')
35 print(
"%s (%s): " % (filename, lineNum), end=
' ')
40 print(
"%s (%s):" % (filename, lineNum))
References print().
Referenced by ClusterSummary.getModuleLocation().