projects
/
b43-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce65ccb
)
libb43.py: Use hashlib
author
Michael Buesch
<mb@bu3sch.de>
Wed, 22 Sep 2010 17:57:57 +0000
(19:57 +0200)
committer
Michael Buesch
<mb@bu3sch.de>
Wed, 22 Sep 2010 17:57:57 +0000
(19:57 +0200)
Signed-off-by: Michael Buesch <mb@bu3sch.de>
debug/libb43.py
patch
|
blob
|
history
diff --git
a/debug/libb43.py
b/debug/libb43.py
index e5c563823a5f67aea30587a22e0eabab063358fb..cb2cf576dadfef981d628145375c64096cf03b91 100644
(file)
--- 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