qemu-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]