Mercurial > treepkg
changeset 418:acb8dbd506f6 treepkg-status
use md5 instead of hashlib module
(md5 is deprecated in favour of hashlib in python 2.5)
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Mon, 26 Jul 2010 13:39:10 +0000 |
parents | 25ef11a79d7f |
children | eac71f066037 |
files | treepkg/util.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: