diff --git a/Lib/collections.py b/Lib/collections.py index 0d35bfd0c51dedf4da9eda303b6e7f329d5f4d72..8fb123fbc107be81a9d03396d846f16e95ea92ea 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 + ################################################################################