From 1f0d1d3f7dc1b01fcdb72bed15615fa761528fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 21 Feb 2017 17:00:51 +0400 Subject: [PATCH] xmlbuilder: add a __repr__ for XMLBuilder object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To help with debugging. Signed-off-by: Marc-André Lureau --- virtinst/xmlbuilder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virtinst/xmlbuilder.py b/virtinst/xmlbuilder.py index 5183b323..7b041683 100644 --- a/virtinst/xmlbuilder.py +++ b/virtinst/xmlbuilder.py @@ -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 "" % (self._XML_ROOT_NAME, id(self))