Skip to content

Commit 9c2caf8

Browse files
committed
Removed redundant check
1 parent 4ff8421 commit 9c2caf8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

redis/utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
HIREDIS_AVAILABLE = int(hiredis.__version__.split(".")[0]) >= 3
1111
if not HIREDIS_AVAILABLE:
1212
raise ImportError("hiredis package should be >= 3.0.0")
13-
HIREDIS_PACK_AVAILABLE = hasattr(hiredis, "pack_command")
14-
if not HIREDIS_PACK_AVAILABLE:
15-
raise ImportError(
16-
"pack_command is not available in the current version of hiredis."
17-
)
1813
except ImportError:
1914
HIREDIS_AVAILABLE = False
2015
HIREDIS_PACK_AVAILABLE = False

0 commit comments

Comments
 (0)