print out warning with line number and rest of arguments
Definition at line 31 of file GenObject.py.
31 def warn (*args, **kwargs):
32 """print out warning with line number and rest of arguments"""
34 frame = inspect.stack()[1]
38 filename = filenameRE.sub (
'', filename)
40 blankLines = kwargs.get(
'blankLines', 0)
42 print(
'\n' * blankLines)
43 spaces = kwargs.get(
'spaces', 0)
45 print(
' ' * spaces, end=
' ')
47 print(
"%s (%s): " % (filename, lineNum), end=
' ')
52 print(
"%s (%s):" % (filename, lineNum))
References print().
Referenced by GenObject.GenObject.printTuple().