diff options
author | Georg Brandl <georg@python.org> | 2010-12-09 18:10:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-09 18:10:27 (GMT) |
commit | b56c0e24d6c24e31483e6777f310e6964f49284d (patch) | |
tree | 8549e59e0ac73ee2fa98d4c41be8bd5a00e8c872 /Lib/xml/etree | |
parent | fb1720b0f57fe6bbae81d9e8cb73076aebc7b40b (diff) | |
download | cpython-b56c0e24d6c24e31483e6777f310e6964f49284d.zip cpython-b56c0e24d6c24e31483e6777f310e6964f49284d.tar.gz cpython-b56c0e24d6c24e31483e6777f310e6964f49284d.tar.bz2 |
#10661: give QName a nicer repr.
Diffstat (limited to 'Lib/xml/etree')
-rw-r--r-- | Lib/xml/etree/ElementTree.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index 75fbea9..ef94e14 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 '<QName %r>' % self.text def __hash__(self): return hash(self.text) def __le__(self, other): |