[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.
Takeshi Matsuyama
report at bugs.python.org
Tue Jan 27 10:57:59 CET 2009
Takeshi Matsuyama <tksmashiw at gmail.com> added the comment:
>From msg80438
>You should reset it by self.data = '' at end_element().
It seems that we should reset it at start_element() like this,
============================
def start_element(self, name, attrs):
...abbr...
if name == 'link':
self.data = ''
=============================
or unwanted \s, \t, and \n mix in "self.data".
That's all, thanks.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5036>
_______________________________________
More information about the Python-bugs-list
mailing list