diff --git a/tools/lintstack.py b/tools/lintstack.py index 25fbcec0d43..e3ca2a7cfa3 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -187,8 +187,12 @@ class LintOutput(object): def review_str(self): return ("File %(filename)s\nLine %(lineno)d:%(line_content)s\n" - "%(code)s: %(message)s" % self.__dict__) - + "%(code)s: %(message)s" % + {'filename': self.filename, + 'lineno': self.lineno, + 'line_content': self.line_content, + 'code': self.code, + 'message': self.message}) class ErrorKeys(object):