diff options
author | Markus Armbruster | 2020-03-04 16:59:32 +0100 |
---|---|---|
committer | Markus Armbruster | 2020-03-05 09:24:11 +0100 |
commit | 8ec0e1a4e68781f1e512af47fd6ab46ec76326e8 (patch) | |
tree | 4d41ab70f82f04c28689e62b26ff0d0763b16bb8 /scripts/qapi/parser.py | |
parent | qapi: Use super() now we have Python 3 (diff) | |
download | qemu-8ec0e1a4e68781f1e512af47fd6ab46ec76326e8.tar.gz qemu-8ec0e1a4e68781f1e512af47fd6ab46ec76326e8.tar.xz qemu-8ec0e1a4e68781f1e512af47fd6ab46ec76326e8.zip |
qapi: Brush off some (py)lint
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200304155932.20452-5-armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qapi/parser.py')
-rw-r--r-- | scripts/qapi/parser.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py index 340f7c4633..abadacbb0e 100644 --- a/scripts/qapi/parser.py +++ b/scripts/qapi/parser.py @@ -282,8 +282,7 @@ class QAPISchemaParser: doc.end_comment() self.accept() return doc - else: - doc.append(self.val) + doc.append(self.val) self.accept(False) raise QAPIParseError(self, "documentation comment must end with '##'") @@ -492,7 +491,7 @@ class QAPIDoc: raise QAPIParseError(self._parser, "'%s' can't follow '%s' section" % (name, self.sections[0].name)) - elif self._is_section_tag(name): + if self._is_section_tag(name): line = line[len(name)+1:] self._start_section(name[:-1]) @@ -556,7 +555,6 @@ class QAPIDoc: raise QAPISemError(feature.info, "feature '%s' lacks documentation" % feature.name) - self.features[feature.name] = QAPIDoc.ArgSection(feature.name) self.features[feature.name].connect(feature) def check_expr(self, expr): |