summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-01 14:22:47 -0700
committerGitHub <noreply@github.com>2018-11-01 14:22:47 -0700
commitfc7ec59f1d63398ae2a05ee9a625d09ab089a120 (patch)
treed9124df37453d0e18364750f6aaa0926f6b720a3 /redis/client.py
parentc2227960548169c0f0549750e0a1f7bd0a126177 (diff)
parent39283c4b27367a7f93b4e0217e95ddc2e8dc6436 (diff)
downloadredis-py-fc7ec59f1d63398ae2a05ee9a625d09ab089a120.tar.gz
Merge pull request #1039 from jeffwidman/patch-2
"while 1" --> "while True"
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index 0cb6fca..b6c0da3 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -649,7 +649,7 @@ class StrictRedis(object):
value_from_callable = kwargs.pop('value_from_callable', False)
watch_delay = kwargs.pop('watch_delay', None)
with self.pipeline(True, shard_hint) as pipe:
- while 1:
+ while True:
try:
if watches:
pipe.watch(*watches)