summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0280/carbons.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0280/carbons.py')
-rw-r--r--slixmpp/plugins/xep_0280/carbons.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/slixmpp/plugins/xep_0280/carbons.py b/slixmpp/plugins/xep_0280/carbons.py
index 4548a31e..a64ccbfd 100644
--- a/slixmpp/plugins/xep_0280/carbons.py
+++ b/slixmpp/plugins/xep_0280/carbons.py
@@ -9,7 +9,6 @@
import logging
import slixmpp
-from slixmpp import coroutine_wrapper
from slixmpp.stanza import Message, Iq
from slixmpp.xmlstream.handler import Callback
from slixmpp.xmlstream.matcher import StanzaPath
@@ -67,22 +66,20 @@ class XEP_0280(BasePlugin):
def _handle_carbon_sent(self, msg):
self.xmpp.event('carbon_sent', msg)
- @coroutine_wrapper
def enable(self, ifrom=None, timeout=None, callback=None,
- timeout_callback=None, coroutine=False):
+ timeout_callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'set'
iq['from'] = ifrom
iq.enable('carbon_enable')
return iq.send(timeout_callback=timeout_callback, timeout=timeout,
- callback=callback, coroutine=coroutine)
+ callback=callback)
- @coroutine_wrapper
def disable(self, ifrom=None, timeout=None, callback=None,
- timeout_callback=None, coroutine=False):
+ timeout_callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'set'
iq['from'] = ifrom
iq.enable('carbon_disable')
return iq.send(timeout_callback=timeout_callback, timeout=timeout,
- callback=callback, coroutine=coroutine)
+ callback=callback)