Merge "Remove self.__dict__ for formatting strings"
This commit is contained in:
commit
3818f0f4dd
@ -113,7 +113,12 @@ class LintOutput(object):
|
|||||||
|
|
||||||
def review_str(self):
|
def review_str(self):
|
||||||
return ("File %(filename)s\nLine %(lineno)d:%(line_content)s\n"
|
return ("File %(filename)s\nLine %(lineno)d:%(line_content)s\n"
|
||||||
"%(code)s: %(message)s" % self.__dict__) # noqa:H501
|
"%(code)s: %(message)s" %
|
||||||
|
{'filename': self.filename,
|
||||||
|
'lineno': self.lineno,
|
||||||
|
'line_content': self.line_content,
|
||||||
|
'code': self.code,
|
||||||
|
'message': self.message})
|
||||||
|
|
||||||
|
|
||||||
class ErrorKeys(object):
|
class ErrorKeys(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user