def python::setQuietWarn | ( | quiet = True | ) |
Definition at line 16 of file __init__.py.
def python::warn | ( | args, | |
kwargs | |||
) |
print out warning with line number and rest of arguments
Definition at line 20 of file __init__.py.
00021 : 00022 """print out warning with line number and rest of arguments""" 00023 if quietWarn: return 00024 frame = inspect.stack()[1] 00025 filename = frame[1] 00026 lineNum = frame[2] 00027 #print "after '%s'" % filename 00028 blankLines = kwargs.get('blankLines', 0) 00029 if blankLines: 00030 print '\n' * blankLines 00031 spaces = kwargs.get('spaces', 0) 00032 if spaces: 00033 print ' ' * spaces, 00034 if len (args): 00035 print "%s (%s): " % (filename, lineNum), 00036 for arg in args: 00037 print arg, 00038 print 00039 else: 00040 print "%s (%s):" % (filename, lineNum)
python::quietWarn = False |
Definition at line 14 of file __init__.py.