Skip to content

Commit e74ed19

Browse files
authored
removing hiredis warning (#1721)
1 parent c02d720 commit e74ed19

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

redis/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def int_or_str(value):
3737
return value
3838

3939

40-
__version__ = "4.0.0"
40+
__version__ = "4.0.1"
4141

4242

4343
VERSION = tuple(map(int_or_str, __version__.split('.')))

redis/connection.py

-5
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@
6363
HIREDIS_SUPPORTS_ENCODING_ERRORS = \
6464
hiredis_version >= LooseVersion('1.0.0')
6565

66-
if not HIREDIS_SUPPORTS_BYTE_BUFFER:
67-
msg = ("redis-py works best with hiredis >= 0.1.4. You're running "
68-
"hiredis %s. Please consider upgrading." % hiredis.__version__)
69-
warnings.warn(msg)
70-
7166
HIREDIS_USE_BYTE_BUFFER = True
7267
# only use byte buffer if hiredis supports it
7368
if not HIREDIS_SUPPORTS_BYTE_BUFFER:

0 commit comments

Comments
 (0)