diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-07-31 13:27:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 13:27:31 +0300 |
commit | 01cc2b2b0251c21937da00d9e76fa08067922c4a (patch) | |
tree | bbf967c9893b2eeedb4175dd3606e07f30adacb7 /redis | |
parent | fee83ae749cbb77700899545270c514a198c14da (diff) | |
download | redis-py-01cc2b2b0251c21937da00d9e76fa08067922c4a.tar.gz |
Remove python2-only `__nonzero__` method from `cluster.py` (#2313)
Diffstat (limited to 'redis')
-rw-r--r-- | redis/cluster.py | 4 |
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 |