[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/14] qapi/schema: Use super()
From: |
Markus Armbruster |
Subject: |
[PATCH 02/14] qapi/schema: Use super() |
Date: |
Thu, 16 Mar 2023 08:13:13 +0100 |
Commit 2cae67bcb5e (qapi: Use super() now we have Python 3) converted
the code to super(). Shortly after, commit f965e8fea6a (qapi: New
special feature flag "deprecated") neglected to use super(). Convert
it now.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
scripts/qapi/schema.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/qapi/schema.py b/scripts/qapi/schema.py
index 207e4d71f3..719152fe49 100644
--- a/scripts/qapi/schema.py
+++ b/scripts/qapi/schema.py
@@ -259,7 +259,7 @@ def need_has_if_optional(self):
return not self.c_type().endswith(POINTER_SUFFIX)
def check(self, schema):
- QAPISchemaEntity.check(self, schema)
+ super().check(schema)
for feat in self.features:
if feat.is_special():
raise QAPISemError(
--
2.39.2
- [PATCH 00/14] qapi: Fix minor bugs, require boxed for conditional arguments, Markus Armbruster, 2023/03/16
- [PATCH 13/14] qapi: Fix code generated for optional conditional struct member, Markus Armbruster, 2023/03/16
- [PATCH 11/14] tests/qapi-schema: Clean up positive test for conditionals, Markus Armbruster, 2023/03/16
- [PATCH 05/14] qapi: Improve error message for unexpected array types, Markus Armbruster, 2023/03/16
- [PATCH 02/14] qapi/schema: Use super(),
Markus Armbruster <=
- [PATCH 01/14] qapi: Fix error message format regression, Markus Armbruster, 2023/03/16
- [PATCH 08/14] qapi: Fix to reject 'data': 'mumble' in struct, Markus Armbruster, 2023/03/16
- [PATCH 12/14] tests/qapi-schema: Cover optional conditional struct member, Markus Armbruster, 2023/03/16
- [PATCH 14/14] qapi: Require boxed for conditional command and event arguments, Markus Armbruster, 2023/03/16