From e74ed1942a746683ece792cb1670c544f599246f Mon Sep 17 00:00:00 2001 From: Chayim Date: Wed, 17 Nov 2021 11:54:45 +0200 Subject: removing hiredis warning (#1721) --- redis/__init__.py | 2 +- redis/connection.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/redis/__init__.py b/redis/__init__.py index 5d63543..480ffd8 100644 --- a/redis/__init__.py +++ b/redis/__init__.py @@ -37,7 +37,7 @@ def int_or_str(value): return value -__version__ = "4.0.0" +__version__ = "4.0.1" VERSION = tuple(map(int_or_str, __version__.split('.'))) diff --git a/redis/connection.py b/redis/connection.py index cb9acb4..35e9491 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -63,11 +63,6 @@ if HIREDIS_AVAILABLE: HIREDIS_SUPPORTS_ENCODING_ERRORS = \ hiredis_version >= LooseVersion('1.0.0') - if not HIREDIS_SUPPORTS_BYTE_BUFFER: - msg = ("redis-py works best with hiredis >= 0.1.4. You're running " - "hiredis %s. Please consider upgrading." % hiredis.__version__) - warnings.warn(msg) - HIREDIS_USE_BYTE_BUFFER = True # only use byte buffer if hiredis supports it if not HIREDIS_SUPPORTS_BYTE_BUFFER: -- cgit v1.2.1