From b56c0e24d6c24e31483e6777f310e6964f49284d Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 9 Dec 2010 18:10:27 +0000 Subject: [PATCH] #10661: give QName a nicer repr. --- Lib/xml/etree/ElementTree.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index 75fbea998a..ef94e146ab 100644 --- a/Lib/xml/etree/ElementTree.py +++ b/Lib/xml/etree/ElementTree.py @@ -584,6 +584,8 @@ class QName: self.text = text_or_uri def __str__(self): return self.text + def __repr__(self): + return '' % self.text def __hash__(self): return hash(self.text) def __le__(self, other): -- 2.40.0