Stop using deprecated md5, switch to hashlib. Closes #36

This commit is contained in:
Steve Pulec 2013-07-08 12:46:36 -04:00
commit b8957e0c6e
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
import md5
import hashlib
import time
from moto.core import BaseBackend
@ -15,7 +15,7 @@ class Message(object):
@property
def md5(self):
body_md5 = md5.new()
body_md5 = hashlib.md5()
body_md5.update(self.body)
return body_md5.hexdigest()