summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrafie <rafi@redislabs.com>2021-11-28 14:50:29 +0200
committerrafie <rafi@redislabs.com>2021-11-28 14:50:29 +0200
commitbfaaefcf73a70a61c20b3b53c5395051541d1e2e (patch)
tree709a49ef3cbd194ea7f22760903b210792f27ff9
parentb3a1468bc82253a65abc5d00dad2850a8dbe2868 (diff)
downloadredis-py-rafi-connargs1.tar.gz
-rwxr-xr-xredis/client.py8
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: