Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-04-26 16:25:40 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-04-26 16:25:40 (GMT)
commit1c249a216bccdc13dac5678b92ca4dc1ee4b5a1b (patch)
tree6a163d1bbe998cb24eac90a614edde58aaa91381 /services
parent0b2658d3a8831a8c5110e5eabe5e3b7b85dd8c19 (diff)
Fix for using with python 2.4.
Diffstat (limited to 'services')
-rw-r--r--services/presence/server_plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
index 5330567..c332337 100644
--- a/services/presence/server_plugin.py
+++ b/services/presence/server_plugin.py
@@ -23,7 +23,7 @@ import gtk
from buddyiconcache import BuddyIconCache
import logging
import os
-import hashlib
+import md5
import psutils
from telepathy.client import ConnectionManager, ManagerRegistry, Connection, Channel
@@ -343,9 +343,9 @@ class ServerPlugin(gobject.GObject):
if not icon_data:
icon_data = self._owner.props.icon
- md5 = hashlib.md5()
- md5.update(icon_data)
- hash = md5.hexdigest()
+ m = md5.new()
+ m.update(icon_data)
+ hash = m.hexdigest()
self_handle = self._conn[CONN_INTERFACE].GetSelfHandle()
token = self._conn[CONN_INTERFACE_AVATARS].GetAvatarTokens([self_handle])[0]