[Python-checkins] r87148 - python/branches/py3k/Lib/xml/etree/ElementTree.py

georg.brandl python-checkins at python.org
Thu Dec 9 19:26:02 CET 2010


Author: georg.brandl
Date: Thu Dec  9 19:26:02 2010
New Revision: 87148

Log:
Guard against rogue tuples.

Modified:
   python/branches/py3k/Lib/xml/etree/ElementTree.py

Modified: python/branches/py3k/Lib/xml/etree/ElementTree.py
==============================================================================
--- python/branches/py3k/Lib/xml/etree/ElementTree.py	(original)
+++ python/branches/py3k/Lib/xml/etree/ElementTree.py	Thu Dec  9 19:26:02 2010
@@ -585,7 +585,7 @@
     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):


More information about the Python-checkins mailing list