mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Guard against rogue tuples.
This commit is contained in:
parent
b56c0e24d6
commit
c95c91880a
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ class QName:
|
|||
def __str__(self):
|
||||
return self.text
|
||||
def __repr__(self):
|
||||
return '<QName %r>' % self.text
|
||||
return '<QName %r>' % (self.text,)
|
||||
def __hash__(self):
|
||||
return hash(self.text)
|
||||
def __le__(self, other):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue