Guard against rogue tuples.
This commit is contained in:
parent
b56c0e24d6
commit
c95c91880a
|
@ -585,7 +585,7 @@ class QName:
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.text
|
return self.text
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<QName %r>' % self.text
|
return '<QName %r>' % (self.text,)
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self.text)
|
return hash(self.text)
|
||||||
def __le__(self, other):
|
def __le__(self, other):
|
||||||
|
|
Loading…
Reference in New Issue