diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-10-24 12:48:41 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-11-13 10:36:51 +0100 |
commit | 6d133eef98bed96ea11c73ad3cd15f21815da993 (patch) | |
tree | 95dd9d80841c997e60cc8ef4b70b2116709da5f3 /scripts | |
parent | 69680740eafa1838527c90155a7432d51b8ff203 (diff) |
qapi: Fix QAPISchemaEntity.__repr__()
I messed it up on merge. It's a debugging aid, so no impact on build.
Fixes: e307a8174bb8 (qapi: provide a friendly string representation of QAPI classes)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20231024104841.1569250-1-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/qapi/schema.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/qapi/schema.py b/scripts/qapi/schema.py index d739e558e9..6a836950a9 100644 --- a/scripts/qapi/schema.py +++ b/scripts/qapi/schema.py @@ -76,7 +76,8 @@ class QAPISchemaEntity: def __repr__(self): if self.name is None: return "<%s at 0x%x>" % (type(self).__name__, id(self)) - return "<%s:%s at 0x%x>" % type(self).__name__, self.name, id(self) + return "<%s:%s at 0x%x>" % (type(self).__name__, self.name, + id(self)) def c_name(self): return c_name(self.name) |