summaryrefslogtreecommitdiff
path: root/examples/set_avatar.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/set_avatar.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/set_avatar.py')
-rwxr-xr-xexamples/set_avatar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/set_avatar.py b/examples/set_avatar.py
index 5805d18a..f9641b1e 100755
--- a/examples/set_avatar.py
+++ b/examples/set_avatar.py
@@ -68,14 +68,14 @@ class AvatarSetter(slixmpp.ClientXMPP):
used_xep84 = False
print('Publish XEP-0084 avatar data')
- result = yield from self['xep_0084'].publish_avatar(avatar, coroutine=True)
+ result = yield from self['xep_0084'].publish_avatar(avatar)
if isinstance(result, XMPPError):
print('Could not publish XEP-0084 avatar')
else:
used_xep84 = True
print('Update vCard with avatar')
- result = yield from self['xep_0153'].set_avatar(avatar=avatar, mtype=avatar_type, coroutine=True)
+ result = yield from self['xep_0153'].set_avatar(avatar=avatar, mtype=avatar_type)
if isinstance(result, XMPPError):
print('Could not set vCard avatar')
@@ -89,7 +89,7 @@ class AvatarSetter(slixmpp.ClientXMPP):
# options in image type, source (HTTP vs pubsub),
# size, etc.
# {'id': ....}
- ], coroutine=True)
+ ])
if isinstance(result, XMPPError):
print('Could not publish XEP-0084 metadata')