diff options
author | Richard Kellner <richard.kellner@erigones.com> | 2015-03-25 14:04:46 +0100 |
---|---|---|
committer | Richard Kellner <richard.kellner@erigones.com> | 2015-03-25 14:04:46 +0100 |
commit | 81b7b2c1908e0f6a5435ce67745b5f4dafb59816 (patch) | |
tree | 8d21edf12868f0ce3e5581c83394e194ea77de74 /examples/set_avatar.py | |
parent | 27582f6fd29e365253e7f3bf2e318a5403da9b73 (diff) | |
download | slixmpp-81b7b2c1908e0f6a5435ce67745b5f4dafb59816.tar.gz slixmpp-81b7b2c1908e0f6a5435ce67745b5f4dafb59816.tar.bz2 slixmpp-81b7b2c1908e0f6a5435ce67745b5f4dafb59816.tar.xz slixmpp-81b7b2c1908e0f6a5435ce67745b5f4dafb59816.zip |
Fixed bug #353 Python3 XEP-0084 error
Diffstat (limited to 'examples/set_avatar.py')
-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() |