[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/14] qapi/doc.py: stash long temporary locals in named locals
From: |
John Snow |
Subject: |
[PATCH 01/14] qapi/doc.py: stash long temporary locals in named locals |
Date: |
Tue, 22 Sep 2020 17:17:49 -0400 |
Signed-off-by: John Snow <jsnow@redhat.com>
---
scripts/qapi/doc.py | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/scripts/qapi/doc.py b/scripts/qapi/doc.py
index 70f7cdfaa6..4743beb89a 100644
--- a/scripts/qapi/doc.py
+++ b/scripts/qapi/doc.py
@@ -267,15 +267,13 @@ def visit_command(self, name, info, ifcond, features,
arg_type, ret_type, gen, success_response, boxed,
allow_oob, allow_preconfig):
doc = self.cur_doc
- self._gen.add(texi_msg('Command', doc, ifcond,
- texi_arguments(doc,
- arg_type if boxed else None)))
+ members = texi_arguments(doc, arg_type if boxed else None)
+ self._gen.add(texi_msg('Command', doc, ifcond, members))
def visit_event(self, name, info, ifcond, features, arg_type, boxed):
doc = self.cur_doc
- self._gen.add(texi_msg('Event', doc, ifcond,
- texi_arguments(doc,
- arg_type if boxed else None)))
+ members = texi_arguments(doc, arg_type if boxed else None)
+ self._gen.add(texi_msg('Event', doc, ifcond, members))
def symbol(self, doc, entity):
if self._gen._body:
--
2.26.2
- [PATCH 00/14] qapi: static typing conversion, pt3, John Snow, 2020/09/22
- [PATCH 01/14] qapi/doc.py: stash long temporary locals in named locals,
John Snow <=
- [PATCH 02/14] qapi/doc.py: avoid unnecessary keyword arguments, John Snow, 2020/09/22
- [PATCH 03/14] qapi/doc.py: Add assertion on section.member, John Snow, 2020/09/22
- [PATCH 07/14] qapi/doc.py: enable mypy checks, John Snow, 2020/09/22
- [PATCH 10/14] qapi/gen.py: Add __bool__ dunder method to QAPIGen, John Snow, 2020/09/22
- [PATCH 12/14] qapi/doc.py: Assert tag member is Enum type, John Snow, 2020/09/22