diff options
author | rafie <rafi@redislabs.com> | 2021-11-28 14:50:29 +0200 |
---|---|---|
committer | rafie <rafi@redislabs.com> | 2021-11-28 14:50:29 +0200 |
commit | bfaaefcf73a70a61c20b3b53c5395051541d1e2e (patch) | |
tree | 709a49ef3cbd194ea7f22760903b210792f27ff9 | |
parent | b3a1468bc82253a65abc5d00dad2850a8dbe2868 (diff) | |
download | redis-py-rafi-connargs1.tar.gz |
fixes 3rafi-connargs1
-rwxr-xr-x | redis/client.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/redis/client.py b/redis/client.py index 706299c..71f19a6 100755 --- a/redis/client.py +++ b/redis/client.py @@ -1092,8 +1092,8 @@ class Redis(RedisModuleCommands, CoreCommands, SentinelCommands, object): pool = self.connection_pool command_name = args[0] need_custom = options != {} and options.keys() != ['decode_responses'] - conn = self.connection and not need_custom or - pool.get_connection(command_name, **options) + conn = self.connection and not need_custom or \ + pool.get_connection(command_name, **options) try: return conn.retry.call_with_retry( @@ -1110,8 +1110,8 @@ class Redis(RedisModuleCommands, CoreCommands, SentinelCommands, object): "Parses a response from the Redis server" try: if 'decode_responses' in options: - response = connection.read_response(decode_responses= - options['decode_responses']) + response = connection.read_response( + decode_responses=options['decode_responses']) else: response = connection.read_response() except ResponseError: |