correctly implement iter_messages() to return every messages
This commit is contained in:
parent
52488b4527
commit
c819276f4f
2 changed files with 31 additions and 18 deletions
|
|
@ -62,7 +62,10 @@ except ImportError:
|
|||
self._target.data(data)
|
||||
|
||||
def handle_endtag(self, tag):
|
||||
self._target.end(tag)
|
||||
try:
|
||||
self._target.end(tag)
|
||||
except:
|
||||
pass
|
||||
|
||||
class StandardParser(object):
|
||||
def parse(self, data, encoding=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue