Skip to content
Snippets Groups Projects
Commit 780b3d4e authored by nkour's avatar nkour
Browse files

avatar/win32: open with rb so windows are ok

parent f2a74306
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,7 @@ def on_set_avatar_button_clicked(self, widget):
% f,
_('The file must not be more than 8 kilobytes.')).get_response()
return
fd = open(f)
fd = open(f, 'rb')
data = fd.read()
pixbufloader = gtk.gdk.PixbufLoader()
pixbufloader.write(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment