summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradiamzn <92513900+adiamzn@users.noreply.github.com>2021-10-19 13:14:49 +0300
committerGitHub <noreply@github.com>2021-10-19 13:14:49 +0300
commit16cfcc7fced84d2b53edf95af1c40b230b30fc3d (patch)
tree3ac73ce548d967ee211c48a4e89c46f25e0e289e
parent2d18a05708523b1961daac4dd9647e2fc65367f1 (diff)
downloadredis-py-16cfcc7fced84d2b53edf95af1c40b230b30fc3d.tar.gz
Add warning when hiredis not installed. Recommend installation. (#1621)
-rwxr-xr-xredis/connection.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/redis/connection.py b/redis/connection.py
index c2fb84f..c99c550 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -71,6 +71,9 @@ if HIREDIS_AVAILABLE:
# only use byte buffer if hiredis supports it
if not HIREDIS_SUPPORTS_BYTE_BUFFER:
HIREDIS_USE_BYTE_BUFFER = False
+else:
+ msg = "redis-py works best with hiredis. Please consider installing"
+ warnings.warn(msg)
SYM_STAR = b'*'
SYM_DOLLAR = b'$'