[PATCH 1/2] build: test the generic md5 function after importing it from hashlib

Björn Jacke bj at sernet.de
Tue Jan 7 07:55:56 MST 2014


otherwise we used the one from md5 which lead to the following warning on SerNet-imini:

the md5 module is deprecated; use hashlib instead import md5

Signed-off-by: Bjoern Jacke <bj at sernet.de>
---
 buildtools/wafsamba/samba_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index c1ac7e2..0b0bb48 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -391,7 +391,7 @@ try:
     # Even if hashlib.md5 exists, it may be unusable.
     # Try to use MD5 function. In FIPS mode this will cause an exception
     # and we'll get to the replacement code
-    foo = md5.md5('abcd')
+    foo = md5('abcd')
 except:
     try:
         import md5
-- 
1.8.3.4



More information about the samba-technical mailing list