diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2021-11-12 08:32:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 08:32:31 +0100 |
commit | 382a35323400e841caa0560132779f0ab563ad2e (patch) | |
tree | 88004e1e0d0dcd3f185107c63a6f485132f2a13c /lib/ansible/utils | |
parent | fb55d878db0a114c49bd3b0384f4f5c9593ea536 (diff) | |
download | ansible-382a35323400e841caa0560132779f0ab563ad2e.tar.gz |
No longer needed to fall back to sha (#76281)
Diffstat (limited to 'lib/ansible/utils')
-rw-r--r-- | lib/ansible/utils/hashing.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/ansible/utils/hashing.py b/lib/ansible/utils/hashing.py index 5f36522e11..1fd4457e80 100644 --- a/lib/ansible/utils/hashing.py +++ b/lib/ansible/utils/hashing.py @@ -21,12 +21,7 @@ __metaclass__ = type import os -# Note, sha1 is the only hash algorithm compatible with python2.4 and with -# FIPS-140 mode (as of 11-2014) -try: - from hashlib import sha1 -except ImportError: - from sha import sha as sha1 +from hashlib import sha1 # Backwards compat only try: |