Skip to contentSkip to conversation

qapi: Fix QAPISchemaEntity.__repr__()

PATCH In review Markus Armbruster 3 participants 3 messages Oct 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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)
---
 scripts/qapi/schema.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/qapi/schema.py +2 -1
index d739e558e9..6a836950a9 100644
@@ -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)
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Markus Armbruster

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)
---
 scripts/qapi/schema.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|