From af5102fe0075520d62beba412c994d4a74f5446b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Tue, 7 Jan 2014 15:55:56 +0100 Subject: [PATCH] build: test the generic md5 function after importing it from hashlib 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 Reviewed-by: Andrew Bartlett --- 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 c1ac7e29b21..0b0bb483781 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 -- 2.11.4.GIT