Fix for using with python 2.4.
This commit is contained in:
parent
0b2658d3a8
commit
1c249a216b
@ -23,7 +23,7 @@ import gtk
|
|||||||
from buddyiconcache import BuddyIconCache
|
from buddyiconcache import BuddyIconCache
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import hashlib
|
import md5
|
||||||
import psutils
|
import psutils
|
||||||
|
|
||||||
from telepathy.client import ConnectionManager, ManagerRegistry, Connection, Channel
|
from telepathy.client import ConnectionManager, ManagerRegistry, Connection, Channel
|
||||||
@ -343,9 +343,9 @@ class ServerPlugin(gobject.GObject):
|
|||||||
if not icon_data:
|
if not icon_data:
|
||||||
icon_data = self._owner.props.icon
|
icon_data = self._owner.props.icon
|
||||||
|
|
||||||
md5 = hashlib.md5()
|
m = md5.new()
|
||||||
md5.update(icon_data)
|
m.update(icon_data)
|
||||||
hash = md5.hexdigest()
|
hash = m.hexdigest()
|
||||||
|
|
||||||
self_handle = self._conn[CONN_INTERFACE].GetSelfHandle()
|
self_handle = self._conn[CONN_INTERFACE].GetSelfHandle()
|
||||||
token = self._conn[CONN_INTERFACE_AVATARS].GetAvatarTokens([self_handle])[0]
|
token = self._conn[CONN_INTERFACE_AVATARS].GetAvatarTokens([self_handle])[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user