[Checkins] SVN: z3c.hashedresource/trunk/ - Using haslib instead of md5 get rid of deprecation warnings with Python 2.6
Christian Zagrodnick
cz at gocept.com
Tue Aug 25 07:17:39 EDT 2009
Log message for revision 103191:
- Using haslib instead of md5 get rid of deprecation warnings with Python 2.6
Changed:
U z3c.hashedresource/trunk/CHANGES.txt
U z3c.hashedresource/trunk/src/z3c/hashedresource/hash.py
-=-
Modified: z3c.hashedresource/trunk/CHANGES.txt
===================================================================
--- z3c.hashedresource/trunk/CHANGES.txt 2009-08-25 11:01:46 UTC (rev 103190)
+++ z3c.hashedresource/trunk/CHANGES.txt 2009-08-25 11:17:39 UTC (rev 103191)
@@ -5,7 +5,7 @@
1.2 (unreleased)
================
-- Nothing changed yet.
+- Using haslib instead of md5 get rid of deprecation warnings with Python 2.6
1.1 (2009-07-27)
Modified: z3c.hashedresource/trunk/src/z3c/hashedresource/hash.py
===================================================================
--- z3c.hashedresource/trunk/src/z3c/hashedresource/hash.py 2009-08-25 11:01:46 UTC (rev 103190)
+++ z3c.hashedresource/trunk/src/z3c/hashedresource/hash.py 2009-08-25 11:17:39 UTC (rev 103191)
@@ -14,7 +14,7 @@
from z3c.hashedresource import interfaces
from zope.interface import implements, implementsOnly
-import md5
+import hashlib
import os
@@ -32,7 +32,7 @@
else:
files = [path]
- result = md5.new()
+ result = hashlib.new('md5')
for file in files:
f = open(file, 'rb')
data = f.read()
More information about the Checkins
mailing list