diff options
author | Alex Wu <itswu.alex@gmail.com> | 2021-11-20 23:47:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 09:47:44 +0200 |
commit | 791f482dcb320f48cf950c4b2c6047d1981a8f67 (patch) | |
tree | a71e1095576c3dade6d1efa5d94de01108eadef2 /redis | |
parent | 4e9cc015e32ef305429ff9dfa200e28dd63e6663 (diff) | |
download | redis-py-791f482dcb320f48cf950c4b2c6047d1981a8f67.tar.gz |
Better removal of hiredis warning (#1726)
Co-authored-by: Alex Wu <alex@anyscale.com>
Diffstat (limited to 'redis')
-rw-r--r-- | redis/__init__.py | 2 | ||||
-rwxr-xr-x | redis/connection.py | 4 |
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'$' |