summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Wu <itswu.alex@gmail.com>2021-11-20 23:47:44 -0800
committerGitHub <noreply@github.com>2021-11-21 09:47:44 +0200
commit791f482dcb320f48cf950c4b2c6047d1981a8f67 (patch)
treea71e1095576c3dade6d1efa5d94de01108eadef2
parent4e9cc015e32ef305429ff9dfa200e28dd63e6663 (diff)
downloadredis-py-791f482dcb320f48cf950c4b2c6047d1981a8f67.tar.gz
Better removal of hiredis warning (#1726)
Co-authored-by: Alex Wu <alex@anyscale.com>
-rw-r--r--redis/__init__.py2
-rwxr-xr-xredis/connection.py4
2 files changed, 1 insertions, 5 deletions
diff --git a/redis/__init__.py b/redis/__init__.py
index 480ffd8..dc9b11a 100644
--- a/redis/__init__.py
+++ b/redis/__init__.py
@@ -37,7 +37,7 @@ def int_or_str(value):
return value
-__version__ = "4.0.1"
+__version__ = "4.0.2"
VERSION = tuple(map(int_or_str, __version__.split('.')))
diff --git a/redis/connection.py b/redis/connection.py
index 35e9491..e01742d 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -9,7 +9,6 @@ import io
import os
import socket
import threading
-import warnings
import weakref
from redis.exceptions import (
@@ -67,9 +66,6 @@ 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'$'