Skip to content

Commit

Permalink
removing hiredis warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chayim committed Nov 17, 2021
1 parent c02d720 commit fe68b7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion redis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')))
Expand Down
5 changes: 0 additions & 5 deletions redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@
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:
Expand Down

0 comments on commit fe68b7d

Please sign in to comment.