]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 1290. CharacterData.__repr__ was constructing a string
authorFacundo Batista <facundobatista@gmail.com>
Wed, 24 Oct 2007 19:11:08 +0000 (19:11 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Wed, 24 Oct 2007 19:11:08 +0000 (19:11 +0000)
in response that keeped having a non-ascii character.

Lib/xml/dom/minidom.py

index 3a35781622f0ea8571118535635afa8d27bb9ecb..40e39f861db749b8241ce4340318c2a9eece1bc3 100644 (file)
@@ -956,7 +956,7 @@ class CharacterData(Childless, Node):
             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):