mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-03 13:47:18 +03:00
xmlbuilder: Improve __repr__ a bit
To show child class name as well
This commit is contained in:
parent
e58b1fc95f
commit
a9e3e50046
@ -1193,4 +1193,5 @@ class XMLBuilder(object):
|
||||
obj._add_parse_bits(node)
|
||||
|
||||
def __repr__(self):
|
||||
return "<XMLBuilder %s %s>" % (self._XML_ROOT_NAME, id(self))
|
||||
return "<%s %s %s>" % (self.__class__.__name__.split(".")[-1],
|
||||
self._XML_ROOT_NAME, id(self))
|
||||
|
Loading…
x
Reference in New Issue
Block a user