diff options
author | John Snow | 2020-10-09 18:15:53 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-10-10 11:37:49 +0200 |
commit | 9abddb5be44245e8529a8c132a16176fc63d0df6 (patch) | |
tree | 47ddf4322d5b330dfc6edbc2d06940fa2ccfc954 /scripts/qapi/gen.py | |
parent | qapi/gen.py: update write() to be more idiomatic (diff) | |
download | qemu-9abddb5be44245e8529a8c132a16176fc63d0df6.tar.gz qemu-9abddb5be44245e8529a8c132a16176fc63d0df6.tar.xz qemu-9abddb5be44245e8529a8c132a16176fc63d0df6.zip |
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: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-32-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/gen.py')
-rw-r--r-- | scripts/qapi/gen.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/qapi/gen.py b/scripts/qapi/gen.py index 670c21e210..b40f18eee3 100644 --- a/scripts/qapi/gen.py +++ b/scripts/qapi/gen.py @@ -51,9 +51,11 @@ class QAPIGen: 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: |