summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2020-01-28 12:50:49 -0800
committerAndy McCurdy <andy@andymccurdy.com>2020-01-30 14:29:59 -0800
commit9df2fc459387f448dd0e9c95534db98dcdb5ad8b (patch)
treefe045bc4ec1b686011ecb2b8eb66e1af90e2df82
parent20d450b6592ce768b39ea99e3d3581fe313d44bb (diff)
downloadredis-py-9df2fc459387f448dd0e9c95534db98dcdb5ad8b.tar.gz
threading.Lock doeesn't accept kwargs
-rwxr-xr-xredis/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py
index ad69bf0..fffdc1a 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -1141,7 +1141,7 @@ class ConnectionPool(object):
timeout_at = time() + 5
acquired = False
while time() < timeout_at:
- acquired = self._fork_lock.acquire(blocking=False)
+ acquired = self._fork_lock.acquire(False)
if acquired:
break
if not acquired: