[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 18/38] qapi/events.py: Move comments into docstrings
From: |
John Snow |
Subject: |
[PATCH v2 18/38] qapi/events.py: Move comments into docstrings |
Date: |
Tue, 22 Sep 2020 17:00:41 -0400 |
Signed-off-by: John Snow <jsnow@redhat.com>
---
scripts/qapi/events.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/qapi/events.py b/scripts/qapi/events.py
index 00a9513c16..e859fd7a52 100644
--- a/scripts/qapi/events.py
+++ b/scripts/qapi/events.py
@@ -52,8 +52,10 @@ def gen_event_send_decl(name: str,
proto=build_event_send_proto(name, arg_type, boxed))
-# Declare and initialize an object 'qapi' using parameters from build_params()
def gen_param_var(typ: QAPISchemaObjectType) -> str:
+ """
+ Declare and initialize a qapi object, using parameters from `build_params`.
+ """
assert not typ.variants
ret = mcgen('''
%(c_name)s param = {
--
2.26.2
- Re: [PATCH v2 04/38] qapi: Prefer explicit relative imports, (continued)
[PATCH v2 08/38] qapi/common.py: Remove python compatibility workaround, John Snow, 2020/09/22
[PATCH v2 17/38] qapi/events.py: add type hint annotations, John Snow, 2020/09/22
[PATCH v2 18/38] qapi/events.py: Move comments into docstrings,
John Snow <=
- Re: [PATCH v2 18/38] qapi/events.py: Move comments into docstrings, Eduardo Habkost, 2020/09/23
- Re: [PATCH v2 18/38] qapi/events.py: Move comments into docstrings, John Snow, 2020/09/23
- Re: [PATCH v2 18/38] qapi/events.py: Move comments into docstrings, Markus Armbruster, 2020/09/25
- Re: [PATCH v2 18/38] qapi/events.py: Move comments into docstrings, John Snow, 2020/09/25
- Re: [PATCH v2 18/38] qapi/events.py: Move comments into docstrings, Markus Armbruster, 2020/09/28
- Re: [PATCH v2 18/38] qapi/events.py: Move comments into docstrings, John Snow, 2020/09/28
Re: [PATCH v2 18/38] qapi/events.py: Move comments into docstrings, Cleber Rosa, 2020/09/23
[PATCH v2 13/38] qapi/common.py: add type hint annotations, John Snow, 2020/09/22