37 """ |
37 """ |
38 Special method return a string representation of the instance object. |
38 Special method return a string representation of the instance object. |
39 |
39 |
40 @return string representation of the object (string) |
40 @return string representation of the object (string) |
41 """ |
41 """ |
42 return '%s:%s: %s' % ( |
42 return '{0}:{1}: {2}'.format( |
43 self.filename, self.lineno, self.message % self.message_args) |
43 self.filename, self.lineno, self.message % self.message_args) |
44 |
44 |
45 def getMessageData(self): |
45 def getMessageData(self): |
46 """ |
46 """ |
47 Public method to get the individual message data elements. |
47 Public method to get the individual message data elements. |