Guard against rogue tuples.
authorGeorg Brandl <georg@python.org>
Thu, 9 Dec 2010 18:26:02 +0000 (18:26 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 9 Dec 2010 18:26:02 +0000 (18:26 +0000)
Lib/xml/etree/ElementTree.py

index ef94e146abe8e873753d225073a0befa84371723..53aa9e755f1e1a633e05426a65ad5d18201a050a 100644 (file)
@@ -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):