X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=debug%2Flibb43.py;h=cf8a7cec1a8a8a781479efbe8053d52f55593348;hb=34a6d79343ea6721907ca2e8159c8739a94fa771;hp=e5c563823a5f67aea30587a22e0eabab063358fb;hpb=29d379ca5d8011793052099783fd4bd70b4a368f;p=b43-tools.git diff --git a/debug/libb43.py b/debug/libb43.py index e5c5638..cf8a7ce 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 * @@ -62,7 +62,7 @@ class B43PsmDebug: class B43: """Hardware access layer. This accesses the hardware through the debugfs interface.""" - def __init__(self, phy): + def __init__(self, phy=None): debugfs_path = self.__debugfs_find() # Construct the debugfs b43 path to the device @@ -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