[Python-checkins] r58641 - python/trunk/Lib/xml/dom/minidom.py
facundo.batista
python-checkins at python.org
Wed Oct 24 21:11:09 CEST 2007
Author: facundo.batista
Date: Wed Oct 24 21:11:08 2007
New Revision: 58641
Modified:
python/trunk/Lib/xml/dom/minidom.py
Log:
Issue 1290. CharacterData.__repr__ was constructing a string
in response that keeped having a non-ascii character.
Modified: python/trunk/Lib/xml/dom/minidom.py
==============================================================================
--- python/trunk/Lib/xml/dom/minidom.py (original)
+++ python/trunk/Lib/xml/dom/minidom.py Wed Oct 24 21:11:08 2007
@@ -956,7 +956,7 @@
dotdotdot = "..."
else:
dotdotdot = ""
- return "<DOM %s node \"%s%s\">" % (
+ return '<DOM %s node "%r%s">' % (
self.__class__.__name__, data[0:10], dotdotdot)
def substringData(self, offset, count):
More information about the Python-checkins
mailing list