From: Benjamin Peterson Date: Sat, 4 Apr 2009 17:26:32 +0000 (+0000) Subject: must provide this method X-Git-Tag: v3.1a2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2504b7a06f6ad833f443b02e5ea26ced207ad0ae;p=thirdparty%2FPython%2Fcpython.git must provide this method --- diff --git a/Lib/collections.py b/Lib/collections.py index 0d35bfd0c51d..8fb123fbc107 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 + ################################################################################