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