diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-12-26 15:02:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-26 15:02:43 +0200 |
commit | b426d0d41cc28f1b0f6ec7092cfb819ce00a6e16 (patch) | |
tree | 2ebb0f286a7d94cad3e6489ca9cd442f593df6a1 /redis/utils.py | |
parent | f03d008ba226c698e266158012b47b348b89b503 (diff) | |
download | redis-py-b426d0d41cc28f1b0f6ec7092cfb819ce00a6e16.tar.gz |
OCSP stapling support (#1820)
Diffstat (limited to 'redis/utils.py')
-rw-r--r-- | redis/utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/redis/utils.py b/redis/utils.py index 50961cb..56fec49 100644 --- a/redis/utils.py +++ b/redis/utils.py @@ -7,6 +7,13 @@ try: except ImportError: HIREDIS_AVAILABLE = False +try: + import cryptography # noqa + + CRYPTOGRAPHY_AVAILABLE = True +except ImportError: + CRYPTOGRAPHY_AVAILABLE = False + def from_url(url, **kwargs): """ |