print out warning with line number and rest of arguments
Definition at line 30 of file GenObject.py.
Referenced by GenObject.GenObject.printTuple().
30 def warn (*args, **kwargs):
31 """print out warning with line number and rest of arguments""" 33 frame = inspect.stack()[1]
37 filename = filenameRE.sub (
'', filename)
39 blankLines = kwargs.get(
'blankLines', 0)
41 print '\n' * blankLines
42 spaces = kwargs.get(
'spaces', 0)
46 print "%s (%s): " % (filename, lineNum),
51 print "%s (%s):" % (filename, lineNum)