We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01edcdd commit 0dd887eCopy full SHA for 0dd887e
redis/utils.py
@@ -13,7 +13,10 @@
13
14
# Only support Hiredis >= 3.0:
15
hiredis_version = hiredis.__version__.split(".")
16
- HIREDIS_AVAILABLE = int(hiredis_version[0]) >= 3 and int(hiredis_version[1]) >= 2
+ HIREDIS_AVAILABLE = (
17
+ int(hiredis_version[0]) > 3 or
18
+ (int(hiredis_version[0]) == 3 and int(hiredis_version[1]) >= 2)
19
+ )
20
if not HIREDIS_AVAILABLE:
21
raise ImportError("hiredis package should be >= 3.2.0")
22
except ImportError:
0 commit comments