diff options
| author | Facundo Batista <facundobatista@gmail.com> | 2007-10-24 19:11:08 (GMT) |
|---|---|---|
| committer | Facundo Batista <facundobatista@gmail.com> | 2007-10-24 19:11:08 (GMT) |
| commit | f5ade63e91268dbc3dbfb0ca3244c61e2fc386b7 (patch) | |
| tree | 8caee95e645f261eacfa8982bdfb6eea1ce5a63f /Lib/xml/dom/minidom.py | |
| parent | bababa3eccbff2d7c2c8bf3fc5730cf90825d300 (diff) | |
| download | cpython-f5ade63e91268dbc3dbfb0ca3244c61e2fc386b7.zip cpython-f5ade63e91268dbc3dbfb0ca3244c61e2fc386b7.tar.gz cpython-f5ade63e91268dbc3dbfb0ca3244c61e2fc386b7.tar.bz2 | |
Issue 1290. CharacterData.__repr__ was constructing a string
in response that keeped having a non-ascii character.
Diffstat (limited to 'Lib/xml/dom/minidom.py')
| -rw-r--r-- | Lib/xml/dom/minidom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 3a35781..40e39f8 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 "<DOM %s node \"%s%s\">" % ( + return '<DOM %s node "%r%s">' % ( self.__class__.__name__, data[0:10], dotdotdot) def substringData(self, offset, count): |
