projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb1720b
)
#10661: give QName a nicer repr.
author
Georg Brandl
<georg@python.org>
Thu, 9 Dec 2010 18:10:27 +0000
(18:10 +0000)
committer
Georg Brandl
<georg@python.org>
Thu, 9 Dec 2010 18:10:27 +0000
(18:10 +0000)
Lib/xml/etree/ElementTree.py
patch
|
blob
|
history
diff --git
a/Lib/xml/etree/ElementTree.py
b/Lib/xml/etree/ElementTree.py
index 75fbea998ad1aac5f83123191971a872fe936667..ef94e146abe8e873753d225073a0befa84371723 100644
(file)
--- 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):