diff options
| author | Simon Charette <charette.s@gmail.com> | 2017-01-19 09:55:03 -0500 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2017-01-19 11:26:26 -0500 |
| commit | 4c5ed3e683576ece880ae99398a1e7d8c5829617 (patch) | |
| tree | b9af0b5941e9f0ef242bcbd36ee8443f91a5323b /django/utils/datastructures.py | |
| parent | 53f3d53ed413d44c88d7e83ee11cff113e84ff4d (diff) | |
Refs #23919 -- Removed __nonzero__() methods (for Python 2).
Thanks Tim for the review.
Diffstat (limited to 'django/utils/datastructures.py')
| -rw-r--r-- | django/utils/datastructures.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index a89af1780b..a61a445ab0 100644 --- a/django/utils/datastructures.py +++ b/django/utils/datastructures.py @@ -32,9 +32,6 @@ class OrderedSet: def __bool__(self): return bool(self.dict) - def __nonzero__(self): # Python 2 compatibility - return type(self).__bool__(self) - def __len__(self): return len(self.dict) |
