From 3e7bb8d1aa631320234f9e05ef940a1d1e9a627f Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sat, 30 Jul 2022 14:34:04 +0300 Subject: [PATCH] Remove `__nonzero__` method --- lib/_range.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/_range.py b/lib/_range.py index 19a05d3c..eb242654 100644 --- a/lib/_range.py +++ b/lib/_range.py @@ -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