Commit b56c0e24 authored by Georg Brandl's avatar Georg Brandl

#10661: give QName a nicer repr.

parent fb1720b0
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment