mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 11:09:56 +00:00
Use a list comprehension instead of filter() to work with Python3.
This commit is contained in:
parent
f9d0b55ca3
commit
3019c82d8a
1 changed files with 1 additions and 1 deletions
|
@ -1205,7 +1205,7 @@ class XMLStream(object):
|
|||
# to run "in stream" will be executed immediately; the rest will
|
||||
# be queued.
|
||||
unhandled = True
|
||||
matched_handlers = filter(lambda h: h.match(stanza), self.__handlers)
|
||||
matched_handlers = [h for h in self.__handlers if h.match(stanza)]
|
||||
for handler in matched_handlers:
|
||||
stanza_copy = copy.copy(stanza) if len(matched_handlers) > 1 else stanza
|
||||
handler.prerun(stanza_copy)
|
||||
|
|
Loading…
Reference in a new issue