Skip to content

Commit 01cc2b2

Browse files
authored
Remove python2-only __nonzero__ method from cluster.py (#2313)
1 parent fee83ae commit 01cc2b2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

redis/cluster.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,10 +1755,6 @@ def __len__(self):
17551755
""" """
17561756
return len(self.command_stack)
17571757

1758-
def __nonzero__(self):
1759-
"Pipeline instances should always evaluate to True on Python 2.7"
1760-
return True
1761-
17621758
def __bool__(self):
17631759
"Pipeline instances should always evaluate to True on Python 3+"
17641760
return True

0 commit comments

Comments
 (0)