diff options
author | Mike Taylor <bear42@gmail.com> | 2015-04-11 18:12:40 -0400 |
---|---|---|
committer | Mike Taylor <bear42@gmail.com> | 2015-04-11 18:12:40 -0400 |
commit | 48857b0030fd53d19ebc07a50a7ec6cecdc8f558 (patch) | |
tree | 6f458d49a8cd1d9c214b90b24b2e178789b89b62 /examples | |
parent | 1fe7f5f4e6317c6287f380f56f3ce1ad2faa0638 (diff) | |
parent | 81b7b2c1908e0f6a5435ce67745b5f4dafb59816 (diff) | |
download | slixmpp-48857b0030fd53d19ebc07a50a7ec6cecdc8f558.tar.gz slixmpp-48857b0030fd53d19ebc07a50a7ec6cecdc8f558.tar.bz2 slixmpp-48857b0030fd53d19ebc07a50a7ec6cecdc8f558.tar.xz slixmpp-48857b0030fd53d19ebc07a50a7ec6cecdc8f558.zip |
Merge pull request #354 from erigones/develop
Fixed bug #353 Python3 XEP-0084 error
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/set_avatar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/set_avatar.py b/examples/set_avatar.py index cae93c99..08e0b664 100755 --- a/examples/set_avatar.py +++ b/examples/set_avatar.py @@ -63,7 +63,7 @@ class AvatarSetter(sleekxmpp.ClientXMPP): avatar_file = None try: - avatar_file = open(os.path.expanduser(self.filepath)) + avatar_file = open(os.path.expanduser(self.filepath), 'rb') except IOError: print('Could not find file: %s' % self.filepath) return self.disconnect() |