Remove __nonzero__ method

This commit is contained in:
Nikita Sobolev 2022-07-30 14:34:04 +03:00 committed by Daniele Varrazzo
parent 07c83ef8bb
commit 3e7bb8d1aa

View File

@ -143,10 +143,6 @@ class Range:
def __bool__(self):
return self._bounds is not None
def __nonzero__(self):
# Python 2 compatibility
return type(self).__bool__(self)
def __eq__(self, other):
if not isinstance(other, Range):
return False