--- src/util.py.org	2009-08-30 00:19:33.000000000 -0500
+++ src/util.py	2009-08-30 00:20:36.000000000 -0500
@@ -5,7 +5,13 @@
 by the modules for various tasks.
 """
 
-import md5
+try:
+	# use hashlib if available, python25 and above
+	from hashlib import md5
+except ImportError:
+	# md5 is deprecated in python26
+	from md5 import new as md5
+
 import os, stat, time
 import imp
 import re, string
@@ -19,7 +25,7 @@
 	"""
 	Compute the MD5 sum of a given file.
 	"""
-	m = md5.new()
+	m = md5()
 	file = open(fname)
 	for line in file.readlines():
 		m.update(line)
