mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
xmlbuilder: add a __repr__ for XMLBuilder object
To help with debugging. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
0055798d21
commit
1f0d1d3f7d
@ -1168,3 +1168,6 @@ class XMLBuilder(object):
|
||||
elif key in childprops:
|
||||
for obj in util.listify(getattr(self, key)):
|
||||
obj._add_parse_bits(node)
|
||||
|
||||
def __repr__(self):
|
||||
return "<XMLBuilder %s %s>" % (self._XML_ROOT_NAME, id(self))
|
||||
|
Loading…
Reference in New Issue
Block a user