From dc57266ca12662cad738509b070af0e8cf18532b Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Wed, 1 Nov 2023 03:17:37 +0000 Subject: [PATCH] Restore == and not != equivalence --- src/icalendar/caselessdict.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/icalendar/caselessdict.py b/src/icalendar/caselessdict.py index c367145..097dcd9 100644 --- a/src/icalendar/caselessdict.py +++ b/src/icalendar/caselessdict.py @@ -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