summaryrefslogtreecommitdiff
path: root/examples/download_avatars.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/download_avatars.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/download_avatars.py')
-rwxr-xr-xexamples/download_avatars.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/download_avatars.py b/examples/download_avatars.py
index 1d7d72f8..408c2146 100755
--- a/examples/download_avatars.py
+++ b/examples/download_avatars.py
@@ -75,7 +75,7 @@ class AvatarDownloader(slixmpp.ClientXMPP):
print("Received vCard avatar update from %s" % pres['from'].bare)
try:
result = yield from self['xep_0054'].get_vcard(pres['from'].bare, cached=True,
- coroutine=True, timeout=5)
+ timeout=5)
except XMPPError:
print("Error retrieving avatar for %s" % pres['from'])
return
@@ -97,7 +97,7 @@ class AvatarDownloader(slixmpp.ClientXMPP):
if not info['url']:
try:
result = yield from self['xep_0084'].retrieve_avatar(msg['from'].bare, info['id'],
- coroutine=True, timeout=5)
+ timeout=5)
except XMPPError:
print("Error retrieving avatar for %s" % msg['from'])
return