Restore == and not != equivalence

pull/575/head
Nicco Kunzmann 2023-11-01 03:17:37 +00:00
rodzic d95007b494
commit dc57266ca1
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -88,6 +88,9 @@ class CaselessDict(OrderedDict):
def __eq__(self, other):
return self is other or dict(self.items()) == dict(other.items())
def __ne__(self, other):
return not self == other
# A list of keys that must appear first in sorted_keys and sorted_items;
# must be uppercase.
canonical_order = None