[open-ils-commits] r16981 - trunk/Open-ILS/src/python/oils/utils (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 20 08:58:15 EDT 2010
Author: erickson
Date: 2010-07-20 08:58:13 -0400 (Tue, 20 Jul 2010)
New Revision: 16981
Modified:
trunk/Open-ILS/src/python/oils/utils/utils.py
Log:
md5 module is deprecated; move to hashlib
Modified: trunk/Open-ILS/src/python/oils/utils/utils.py
===================================================================
--- trunk/Open-ILS/src/python/oils/utils/utils.py 2010-07-19 19:03:20 UTC (rev 16980)
+++ trunk/Open-ILS/src/python/oils/utils/utils.py 2010-07-20 12:58:13 UTC (rev 16981)
@@ -13,7 +13,7 @@
# GNU General Public License for more details.
# -----------------------------------------------------------------------
-import re, md5
+import re, hashlib
import osrf.ses
from osrf.log import *
@@ -24,7 +24,7 @@
# -----------------------------------------------------------------------
def md5sum(str):
- m = md5.new()
+ m = hashlib.md5()
m.update(str)
return m.hexdigest()
More information about the open-ils-commits
mailing list