From: Facundo Batista Date: Wed, 24 Oct 2007 19:11:08 +0000 (+0000) Subject: Issue 1290. CharacterData.__repr__ was constructing a string X-Git-Tag: v2.6a1~1130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5ade63e91268dbc3dbfb0ca3244c61e2fc386b7;p=thirdparty%2FPython%2Fcpython.git Issue 1290. CharacterData.__repr__ was constructing a string in response that keeped having a non-ascii character. --- diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 3a35781622f0..40e39f861db7 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -956,7 +956,7 @@ class CharacterData(Childless, Node): dotdotdot = "..." else: dotdotdot = "" - return "" % ( + return '' % ( self.__class__.__name__, data[0:10], dotdotdot) def substringData(self, offset, count):