mirror of https://github.com/python/cpython
Issue 1290. CharacterData.__repr__ was constructing a string
in response that keeped having a non-ascii character.
This commit is contained in:
parent
bababa3ecc
commit
f5ade63e91
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue