summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-07-31 13:27:31 +0300
committerGitHub <noreply@github.com>2022-07-31 13:27:31 +0300
commit01cc2b2b0251c21937da00d9e76fa08067922c4a (patch)
treebbf967c9893b2eeedb4175dd3606e07f30adacb7 /redis
parentfee83ae749cbb77700899545270c514a198c14da (diff)
downloadredis-py-01cc2b2b0251c21937da00d9e76fa08067922c4a.tar.gz
Remove python2-only `__nonzero__` method from `cluster.py` (#2313)
Diffstat (limited to 'redis')
-rw-r--r--redis/cluster.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/redis/cluster.py b/redis/cluster.py
index b05cf30..f5844fd 100644
--- a/redis/cluster.py
+++ b/redis/cluster.py
@@ -1755,10 +1755,6 @@ class ClusterPipeline(RedisCluster):
""" """
return len(self.command_stack)
- def __nonzero__(self):
- "Pipeline instances should always evaluate to True on Python 2.7"
- return True
-
def __bool__(self):
"Pipeline instances should always evaluate to True on Python 3+"
return True