From: erickson Date: Tue, 20 Jul 2010 12:58:13 +0000 (+0000) Subject: md5 module is deprecated; move to hashlib X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dfbce759b99e6d7dd6abbfc1160f5a2953308a3e;p=evergreen%2Fbjwebb.git md5 module is deprecated; move to hashlib git-svn-id: svn://svn.open-ils.org/ILS/trunk@16981 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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()