diff --git a/waflib/Utils.py b/waflib/Utils.py index 67917d8b55..3d707a5843 100644 --- a/waflib/Utils.py +++ b/waflib/Utils.py @@ -51,8 +51,14 @@ class TimeoutExpired(Exception): try: from hashlib import sha1 as md5 except ImportError: - # never fail to enable fixes from another module + # never fail to enable potential fixes from another module pass +else: + try: + md5().digest() + except ValueError: + # Fips? #2213 + from hashlib import sha1 as md5 try: import threading