diff options
author | mathieui <mathieui@mathieui.net> | 2015-02-22 14:17:17 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-02-22 14:17:17 +0100 |
commit | 2b3b86e281da03dfe4b2444be5b62811b4dcfe8d (patch) | |
tree | 10638578db29b92a20cb0760e50d4c2c73120a92 /slixmpp/xmlstream/handler/__init__.py | |
parent | 92e4bc752a7da814b5b7c19b0f5d2ee95f715f7e (diff) | |
download | slixmpp-2b3b86e281da03dfe4b2444be5b62811b4dcfe8d.tar.gz slixmpp-2b3b86e281da03dfe4b2444be5b62811b4dcfe8d.tar.bz2 slixmpp-2b3b86e281da03dfe4b2444be5b62811b4dcfe8d.tar.xz slixmpp-2b3b86e281da03dfe4b2444be5b62811b4dcfe8d.zip |
Allow event handlers to be coroutine functions
And do not copy data when running events with XMLStream.event()
Diffstat (limited to 'slixmpp/xmlstream/handler/__init__.py')
-rw-r--r-- | slixmpp/xmlstream/handler/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/handler/__init__.py b/slixmpp/xmlstream/handler/__init__.py index 31de9dfc..51a7ca6a 100644 --- a/slixmpp/xmlstream/handler/__init__.py +++ b/slixmpp/xmlstream/handler/__init__.py @@ -7,9 +7,10 @@ """ from slixmpp.xmlstream.handler.callback import Callback +from slixmpp.xmlstream.handler.coroutine_callback import CoroutineCallback from slixmpp.xmlstream.handler.collector import Collector from slixmpp.xmlstream.handler.waiter import Waiter from slixmpp.xmlstream.handler.xmlcallback import XMLCallback from slixmpp.xmlstream.handler.xmlwaiter import XMLWaiter -__all__ = ['Callback', 'Waiter', 'XMLCallback', 'XMLWaiter'] +__all__ = ['Callback', 'CoroutineCallback', 'Waiter', 'XMLCallback', 'XMLWaiter'] |