diff mbox series

qapi: Fix QAPISchemaEntity.__repr__()

Message ID 20231024104841.1569250-1-armbru@redhat.com
State New
Headers show
Series qapi: Fix QAPISchemaEntity.__repr__() | expand

Commit Message

Markus Armbruster Oct. 24, 2023, 10:48 a.m. UTC
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>
---
 scripts/qapi/schema.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Daniel P. Berrangé Oct. 24, 2023, 12:02 p.m. UTC | #1
On Tue, Oct 24, 2023 at 12:48:41PM +0200, Markus Armbruster wrote:
> 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>
> ---
>  scripts/qapi/schema.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
Philippe Mathieu-Daudé Oct. 24, 2023, 12:06 p.m. UTC | #2
On 24/10/23 12:48, Markus Armbruster wrote:
> 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>
> ---
>   scripts/qapi/schema.py | 3 ++-
>   1 file changed, 2 insertions(+), 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 d739e558e9..6a836950a9 100644
--- a/scripts/qapi/schema.py
+++ b/scripts/qapi/schema.py
@@ -76,7 +76,8 @@  def __init__(self, name: str, info, doc, ifcond=None, features=None):
     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)