summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-09-23 12:03:49 -0400
committerLance Stout <lancestout@gmail.com>2011-09-23 12:03:49 -0400
commit262da78ca7c5b71901f0f23111ef65156ac56463 (patch)
treeb27bd7c9e42d830ea5cb13be7072c7f3c89a844e /sleekxmpp/xmlstream
parent0b83edf439dd4d934eb779454f865df5e46fecf8 (diff)
downloadslixmpp-262da78ca7c5b71901f0f23111ef65156ac56463.tar.gz
slixmpp-262da78ca7c5b71901f0f23111ef65156ac56463.tar.bz2
slixmpp-262da78ca7c5b71901f0f23111ef65156ac56463.tar.xz
slixmpp-262da78ca7c5b71901f0f23111ef65156ac56463.zip
Fix del_event_handler for Python3 (different semantics for filter()).
Fixes issue #103
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index e047dbd7..0a66a974 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -840,8 +840,9 @@ class XMLStream(object):
def filter_pointers(handler):
return handler[0] != pointer
- self.__event_handlers[name] = filter(filter_pointers,
- self.__event_handlers[name])
+ self.__event_handlers[name] = list(filter(
+ filter_pointers,
+ self.__event_handlers[name]))
def event_handled(self, name):
"""