From dfbce759b99e6d7dd6abbfc1160f5a2953308a3e Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 20 Jul 2010 12:58:13 +0000 Subject: [PATCH] md5 module is deprecated; move to hashlib git-svn-id: svn://svn.open-ils.org/ILS/trunk@16981 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/python/oils/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/python/oils/utils/utils.py b/Open-ILS/src/python/oils/utils/utils.py index b1fd03748..12b3448ff 100644 --- a/Open-ILS/src/python/oils/utils/utils.py +++ b/Open-ILS/src/python/oils/utils/utils.py @@ -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 @@ from osrf.log import * # ----------------------------------------------------------------------- def md5sum(str): - m = md5.new() + m = hashlib.md5() m.update(str) return m.hexdigest() -- 2.11.0