40
40
warnings.formatwarning = oldformatwarning
42
def formatwarning(self, message, category, filename, lineno):
42
def formatwarning(self, message, category, filename, lineno, line=None):
43
43
"""Function to format a warning."""
44
44
return "CherryPy Checker:\n%s\n\n" % message