Refs #23919 -- Removed __nonzero__() methods (for Python 2).

Thanks Tim for the review.
This commit is contained in:
Simon Charette 2017-01-19 09:55:03 -05:00
parent 53f3d53ed4
commit 4c5ed3e683
10 changed files with 8 additions and 34 deletions

View file

@ -253,9 +253,6 @@ class QuerySet:
self._fetch_all()
return bool(self._result_cache)
def __nonzero__(self): # Python 2 compatibility
return type(self).__bool__(self)
def __getitem__(self, k):
"""
Retrieves an item or slice from the set of results.