From: Michael Buesch Date: Wed, 22 Sep 2010 17:57:57 +0000 (+0200) Subject: libb43.py: Use hashlib X-Git-Tag: b43-fwcutter-014~17 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=29f17f2762560656a54d1ab24eb459784449d0b9;p=b43-tools.git libb43.py: Use hashlib Signed-off-by: Michael Buesch --- diff --git a/debug/libb43.py b/debug/libb43.py index e5c5638..cb2cf57 100644 --- a/debug/libb43.py +++ b/debug/libb43.py @@ -19,7 +19,7 @@ import sys import os import re -import md5 +import hashlib from tempfile import * @@ -343,7 +343,7 @@ class TextPatcher: self.deleted = False def __init__(self, text, expected_md5sum): - sum = md5.md5(text).hexdigest() + sum = hashlib.md5(text).hexdigest() if sum != expected_md5sum: print "Patcher: The text does not match the expected MD5 sum" print "Expected: " + expected_md5sum