From 29f17f2762560656a54d1ab24eb459784449d0b9 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Wed, 22 Sep 2010 19:57:57 +0200 Subject: [PATCH] libb43.py: Use hashlib Signed-off-by: Michael Buesch --- debug/libb43.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.31.1