diff options
author | mathieui <mathieui@mathieui.net> | 2015-02-12 12:21:20 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-02-12 12:21:20 +0100 |
commit | 4d063e287e1bb2010d115325a3c8c6ca7c542bfc (patch) | |
tree | a8893d89d44d92e25a078a1d481152cf319b3b14 /slixmpp/plugins/xep_0118 | |
parent | 44f02fb3ab286e80d7f82031f751b3650cb94f8b (diff) | |
download | slixmpp-4d063e287e1bb2010d115325a3c8c6ca7c542bfc.tar.gz slixmpp-4d063e287e1bb2010d115325a3c8c6ca7c542bfc.tar.bz2 slixmpp-4d063e287e1bb2010d115325a3c8c6ca7c542bfc.tar.xz slixmpp-4d063e287e1bb2010d115325a3c8c6ca7c542bfc.zip |
Remove more threaded= and block= options from the plugins
(also, correct a typo)
Diffstat (limited to 'slixmpp/plugins/xep_0118')
-rw-r--r-- | slixmpp/plugins/xep_0118/user_tune.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/slixmpp/plugins/xep_0118/user_tune.py b/slixmpp/plugins/xep_0118/user_tune.py index 53eb4582..bfb1762a 100644 --- a/slixmpp/plugins/xep_0118/user_tune.py +++ b/slixmpp/plugins/xep_0118/user_tune.py @@ -35,7 +35,7 @@ class XEP_0118(BasePlugin): def publish_tune(self, artist=None, length=None, rating=None, source=None, title=None, track=None, uri=None, options=None, - ifrom=None, block=True, callback=None, timeout=None): + ifrom=None, callback=None, timeout=None): """ Publish the user's current tune. @@ -49,8 +49,6 @@ class XEP_0118(BasePlugin): uri -- A URL to more information about the song. options -- Optional form of publish options. ifrom -- Specify the sender's JID. - block -- Specify if the send call will block until a response - is received, or a timeout occurs. Defaults to True. timeout -- The length of time (in seconds) to wait for a response before exiting the send call if blocking is used. Defaults to slixmpp.xmlstream.RESPONSE_TIMEOUT @@ -69,18 +67,15 @@ class XEP_0118(BasePlugin): node=UserTune.namespace, options=options, ifrom=ifrom, - block=block, callback=callback, timeout=timeout) - def stop(self, ifrom=None, block=True, callback=None, timeout=None): + def stop(self, ifrom=None, callback=None, timeout=None): """ Clear existing user tune information to stop notifications. Arguments: ifrom -- Specify the sender's JID. - block -- Specify if the send call will block until a response - is received, or a timeout occurs. Defaults to True. timeout -- The length of time (in seconds) to wait for a response before exiting the send call if blocking is used. Defaults to slixmpp.xmlstream.RESPONSE_TIMEOUT @@ -91,6 +86,5 @@ class XEP_0118(BasePlugin): return self.xmpp['xep_0163'].publish(tune, node=UserTune.namespace, ifrom=ifrom, - block=block, callback=callback, timeout=timeout) |