summaryrefslogtreecommitdiff
path: root/examples/disco_browser.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-02-28 13:29:08 +0100
committermathieui <mathieui@mathieui.net>2015-02-28 19:02:44 +0100
commit83d00a5913e6b7ef71de602e793b3973866c7120 (patch)
tree08b5dca6880424d43e6c8baa951c37a7c2ac95ac /examples/disco_browser.py
parentbf5d7c83af320b7af629857aab7060302abfabf5 (diff)
downloadslixmpp-83d00a5913e6b7ef71de602e793b3973866c7120.tar.gz
slixmpp-83d00a5913e6b7ef71de602e793b3973866c7120.tar.bz2
slixmpp-83d00a5913e6b7ef71de602e793b3973866c7120.tar.xz
slixmpp-83d00a5913e6b7ef71de602e793b3973866c7120.zip
Fix examples relying on the changed API
Diffstat (limited to 'examples/disco_browser.py')
-rwxr-xr-xexamples/disco_browser.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/disco_browser.py b/examples/disco_browser.py
index 796562f2..783156b8 100755
--- a/examples/disco_browser.py
+++ b/examples/disco_browser.py
@@ -82,15 +82,13 @@ class Disco(slixmpp.ClientXMPP):
# for the disco_info event, or passing a handler
# function using the callback parameter.
info = yield from self['xep_0030'].get_info(jid=self.target_jid,
- node=self.target_node,
- coroutine=True)
+ node=self.target_node)
if self.get in self.items_types:
# The same applies from above. Listen for the
# disco_items event or pass a callback function
# if you need to process a non-blocking request.
items = yield from self['xep_0030'].get_items(jid=self.target_jid,
- node=self.target_node,
- coroutine=True)
+ node=self.target_node)
if self.get not in self.info_types and self.get not in self.items_types:
logging.error("Invalid disco request type.")
return