self.messages = []
def check_field(self, filename, name, values, key, expected=REPORTER_NOT_SET):
self.messages = []
def check_field(self, filename, name, values, key, expected=REPORTER_NOT_SET):
return location + ': ' + message
elif isinstance(location, tuple):
return '{0}:{1}: '.format(*location) + message
return location + ': ' + message
elif isinstance(location, tuple):
return '{0}:{1}: '.format(*location) + message
return (location, -1, message)
elif isinstance(location, tuple):
return (location[0], location[1], message)
return (location, -1, message)
elif isinstance(location, tuple):
return (location[0], location[1], message)
def report(self, stream=sys.stdout):
"""Report all messages in order."""
def report(self, stream=sys.stdout):
"""Report all messages in order."""