diff mbox series

[02/14] qapi/schema: Use super()

Message ID 20230316071325.492471-3-armbru@redhat.com (mailing list archive)
State New, archived
Headers show
Series qapi: Fix minor bugs, require boxed for conditional arguments | expand

Commit Message

Markus Armbruster March 16, 2023, 7:13 a.m. UTC
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(-)

Comments

Philippe Mathieu-Daudé March 16, 2023, 7:40 a.m. UTC | #1
On 16/3/23 08:13, Markus Armbruster wrote:
> 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(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff mbox series

Patch

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(