Kaydet (Commit) f5ade63e authored tarafından Facundo Batista's avatar Facundo Batista

Issue 1290. CharacterData.__repr__ was constructing a string

in response that keeped having a non-ascii character.
üst bababa3e
...@@ -956,7 +956,7 @@ class CharacterData(Childless, Node): ...@@ -956,7 +956,7 @@ class CharacterData(Childless, Node):
dotdotdot = "..." dotdotdot = "..."
else: else:
dotdotdot = "" dotdotdot = ""
return "<DOM %s node \"%s%s\">" % ( return '<DOM %s node "%r%s">' % (
self.__class__.__name__, data[0:10], dotdotdot) self.__class__.__name__, data[0:10], dotdotdot)
def substringData(self, offset, count): def substringData(self, offset, count):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment