[Treepkg-commits] r378 - branches/treepkg-status/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jul 26 15:39:11 CEST 2010


Author: bricks
Date: 2010-07-26 15:39:10 +0200 (Mon, 26 Jul 2010)
New Revision: 378

Modified:
   branches/treepkg-status/treepkg/util.py
Log:
use md5 instead of hashlib module
(md5 is deprecated in favour of hashlib in python 2.5)


Modified: branches/treepkg-status/treepkg/util.py
===================================================================
--- branches/treepkg-status/treepkg/util.py	2010-07-26 12:58:50 UTC (rev 377)
+++ branches/treepkg-status/treepkg/util.py	2010-07-26 13:39:10 UTC (rev 378)
@@ -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:



More information about the Treepkg-commits mailing list