diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2018-10-11 22:54:57 -0700 |
---|---|---|
committer | Jeff Widman <jeff@jeffwidman.com> | 2018-10-11 23:02:01 -0700 |
commit | 39283c4b27367a7f93b4e0217e95ddc2e8dc6436 (patch) | |
tree | aef708a0fac9ad9ef0f54870c0c402e93af1d5cf /redis/lock.py | |
parent | 0d6c5f28ef87c83df5540abc358252cae3d2060e (diff) | |
download | redis-py-39283c4b27367a7f93b4e0217e95ddc2e8dc6436.tar.gz |
"while 1" --> "while True"
This is python, not C
Diffstat (limited to 'redis/lock.py')
-rw-r--r-- | redis/lock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/lock.py b/redis/lock.py index 732568b..bc7e850 100644 --- a/redis/lock.py +++ b/redis/lock.py @@ -107,7 +107,7 @@ class Lock(object): stop_trying_at = None if blocking_timeout is not None: stop_trying_at = mod_time.time() + blocking_timeout - while 1: + while True: if self.do_acquire(token): self.local.token = token return True |