From 2504b7a06f6ad833f443b02e5ea26ced207ad0ae Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 4 Apr 2009 17:26:32 +0000 Subject: must provide this method --- Lib/collections.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/collections.py b/Lib/collections.py index 0d35bfd..8fb123f 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -132,6 +132,9 @@ class OrderedDict(dict, MutableMapping): all(p==q for p, q in zip(self.items(), other.items())) return dict.__eq__(self, other) + def __ne__(self, other): + return not self == other + ################################################################################ -- cgit v0.12