Skip to content

Commit 791f482

Browse files
wuisawesomeAlex Wu
andauthored
Better removal of hiredis warning (#1726)
Co-authored-by: Alex Wu <[email protected]>
1 parent 4e9cc01 commit 791f482

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

redis/__init__.py

Lines changed: 1 addition & 1 deletion
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.1"
40+
__version__ = "4.0.2"
4141

4242

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

redis/connection.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import os
1010
import socket
1111
import threading
12-
import warnings
1312
import weakref
1413

1514
from redis.exceptions import (
@@ -67,9 +66,6 @@
6766
# only use byte buffer if hiredis supports it
6867
if not HIREDIS_SUPPORTS_BYTE_BUFFER:
6968
HIREDIS_USE_BYTE_BUFFER = False
70-
else:
71-
msg = "redis-py works best with hiredis. Please consider installing"
72-
warnings.warn(msg)
7369

7470
SYM_STAR = b'*'
7571
SYM_DOLLAR = b'$'

0 commit comments

Comments
 (0)