summaryrefslogtreecommitdiffstats
path: root/Lib/xml/etree/ElementTree.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-09 18:26:02 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-09 18:26:02 (GMT)
commitc95c91880ae0420d594173c584202de014bc5ac9 (patch)
tree9fddc713fd37723f3bfb0f5fe9e5d73d49b95139 /Lib/xml/etree/ElementTree.py
parentb56c0e24d6c24e31483e6777f310e6964f49284d (diff)
downloadcpython-c95c91880ae0420d594173c584202de014bc5ac9.zip
cpython-c95c91880ae0420d594173c584202de014bc5ac9.tar.gz
cpython-c95c91880ae0420d594173c584202de014bc5ac9.tar.bz2
Guard against rogue tuples.
Diffstat (limited to 'Lib/xml/etree/ElementTree.py')
-rw-r--r--Lib/xml/etree/ElementTree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index ef94e14..53aa9e7 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -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):