Issue 1290. CharacterData.__repr__ was constructing a string

in response that keeped having a non-ascii character.
This commit is contained in:
Facundo Batista 2007-10-24 19:11:08 +00:00
parent bababa3ecc
commit f5ade63e91
1 changed files with 1 additions and 1 deletions

View 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):