Commit 2f9b0eab authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[dkirov] JEP says we should not use EXTVAL in vcard

parent d91d0e0b
......@@ -16,7 +16,6 @@
import gtk
import gtk.glade
import gobject
import urllib
import base64
import mimetypes
import os
......@@ -53,13 +52,6 @@ def get_avatar_pixbuf_encoded_mime(photo):
img_decoded = base64.decodestring(img_encoded)
except:
pass
elif photo.has_key('EXTVAL'):
url = photo['EXTVAL']
try:
fd = urllib.urlopen(url)
img_decoded = fd.read()
except:
pass
if img_decoded:
pixbuf = gtkgui_helpers.get_pixbuf_from_data(img_decoded)
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment