# HG changeset patch # User Bjoern Ricks # Date 1280151550 0 # Node ID acb8dbd506f6aef98a2a8a58f98bdf92137c0754 # Parent 25ef11a79d7fac2124c01f241cf8943234779e63 use md5 instead of hashlib module (md5 is deprecated in favour of hashlib in python 2.5) diff -r 25ef11a79d7f -r acb8dbd506f6 treepkg/util.py --- a/treepkg/util.py Mon Jul 26 12:58:50 2010 +0000 +++ b/treepkg/util.py Mon Jul 26 13:39:10 2010 +0000 @@ -14,7 +14,7 @@ import fnmatch import pwd import os.path -import hashlib +import md5 import run @@ -165,7 +165,7 @@ raise RuntimeError("Could not create md5sum. File not found: %s" % filename) f = file(filename, 'rb') - m = hashlib.md5() + m = md5.new() while True: d = f.read(8096) if not d: