diff options
author | Lars Hupfeldt <lhn@hupfeldtit.dk> | 2020-05-05 02:27:33 +0200 |
---|---|---|
committer | Lars Hupfeldt <lhn@hupfeldtit.dk> | 2020-05-05 02:27:33 +0200 |
commit | 193d1410acf297a32b9e69b0626901790c7e1647 (patch) | |
tree | c35418fa0cb1846d04f2e529624d6db8b17da02a | |
parent | 1b8415a1c1c1b82338327eb14ac4872d753c5b73 (diff) | |
download | sphinx-git-193d1410acf297a32b9e69b0626901790c7e1647.tar.gz |
Fix mypy and flake8 checks
-rw-r--r-- | sphinx/util/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index 3c219cc67..3400041ac 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -173,16 +173,17 @@ class FilenameUniqDict(dict): def fips_safe_md5(data=b'', **kwargs): """Wrapper around hashlib.md5 - Attempt call with 'usedforsecurity=False' if we get a ValueError, which happens when OpenSSL FIPS mode is enabled: + Attempt call with 'usedforsecurity=False' if we get a ValueError, which happens when + OpenSSL FIPS mode is enabled: ValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips See: https://github.com/sphinx-doc/sphinx/issues/7611 """ try: - return md5(data, **kwargs) + return md5(data, **kwargs) # type: ignore except ValueError: - return md5(data, **kwargs, usedforsecurity=False) + return md5(data, **kwargs, usedforsecurity=False) # type: ignore class DownloadFiles(dict): |