mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue