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:
|
elif key in childprops:
|
||||||
for obj in util.listify(getattr(self, key)):
|
for obj in util.listify(getattr(self, key)):
|
||||||
obj._add_parse_bits(node)
|
obj._add_parse_bits(node)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "<XMLBuilder %s %s>" % (self._XML_ROOT_NAME, id(self))
|
||||||
|
|
Loading…
Reference in New Issue