Skip to content

Commit

Permalink
Remove python2-only __nonzero__ method from cluster.py (#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jul 31, 2022
1 parent fee83ae commit 01cc2b2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions redis/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01cc2b2

Please sign in to comment.