print out warning with line number and rest of arguments
Definition at line 32 of file GenObject.py.
32 def warn (*args, **kwargs):
33 """print out warning with line number and rest of arguments"""
35 frame = inspect.stack()[1]
39 filename = filenameRE.sub (
'', filename)
41 blankLines = kwargs.get(
'blankLines', 0)
43 print(
'\n' * blankLines)
44 spaces = kwargs.get(
'spaces', 0)
46 print(
' ' * spaces, end=
' ')
48 print(
"%s (%s): " % (filename, lineNum), end=
' ')
53 print(
"%s (%s):" % (filename, lineNum))
References edm.print().
Referenced by GenObject.GenObject.printTuple().