File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,14 @@ def __init__(self, max_data_size=_DEFAULT_MAX_DATA_SIZE):
115
115
def setup_once ():
116
116
# type: () -> None
117
117
try :
118
- import redis
118
+ from redis import StrictRedis , client
119
119
except ImportError :
120
120
raise DidNotEnable ("Redis client not installed" )
121
121
122
- patch_redis_client (redis . StrictRedis , is_cluster = False )
123
- patch_redis_pipeline (redis . client .Pipeline , False , _get_redis_command_args )
122
+ patch_redis_client (StrictRedis , is_cluster = False )
123
+ patch_redis_pipeline (client .Pipeline , False , _get_redis_command_args )
124
124
try :
125
- strict_pipeline = redis . client .StrictPipeline # type: ignore
125
+ strict_pipeline = client .StrictPipeline # type: ignore
126
126
except AttributeError :
127
127
pass
128
128
else :
You can’t perform that action at this time.
0 commit comments