From 3a85387c0831d1191b5d4f28379a138f9e7c7ad7 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sat, 30 Jul 2022 13:22:39 +0300 Subject: [PATCH] Remove python2-only `__nonzero__` method from `cluster.py` --- redis/cluster.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/redis/cluster.py b/redis/cluster.py index b05cf307db..f5844fd62a 100644 --- a/redis/cluster.py +++ b/redis/cluster.py @@ -1755,10 +1755,6 @@ def __len__(self): """ """ 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