Skip to content
Snippets Groups Projects
Commit 9abddb5b authored by John Snow's avatar John Snow Committed by Markus Armbruster
Browse files

qapi/gen.py: delint with pylint


'fp' and 'fd' are self-evident in context, add them to the list of OK
names.

_top and _bottom also need to stay standard methods because some users
override the method and need to use `self`. Tell pylint to shush.

Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
Reviewed-by: default avatarEduardo Habkost <ehabkost@redhat.com>
Reviewed-by: default avatarCleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-32-jsnow@redhat.com>
Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent cc6263c4
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,11 @@ def get_content(self) -> str:
return self._top() + self._preamble + self._body + self._bottom()
def _top(self) -> str:
# pylint: disable=no-self-use
return ''
def _bottom(self) -> str:
# pylint: disable=no-self-use
return ''
def write(self, output_dir: str) -> None:
......
......@@ -4,7 +4,6 @@
# The regex matches against base names, not paths.
ignore-patterns=error.py,
expr.py,
gen.py,
parser.py,
schema.py,
types.py,
......@@ -45,7 +44,9 @@ good-names=i,
k,
ex,
Run,
_
_,
fp, # fp = open(...)
fd, # fd = os.open(...)
[VARIABLES]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment