summaryrefslogtreecommitdiff
path: root/redis/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/utils.py')
-rw-r--r--redis/utils.py7
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):
"""