Commits

Matt Chaput  committed 2373100

Added explicit __ne__ methods.

  • Participants
  • Parent commits b63f101
  • Branches 2.4x

Comments (0)

Files changed (1)

File src/whoosh/fields.py

                     (self.stored == other.stored),
                     (self.unique == other.unique)))
 
+    def __ne__(self, other):
+        return not(self.__eq__(other))
+
     def __setstate__(self, state):
         # Fix old fields pickled back when the analyzer was on the format
         analyzer = state.get("analyzer")
         return (other.__class__ is self.__class__
                 and list(self.items()) == list(other.items()))
 
+    def __ne__(self, other):
+        return not(self.__eq__(other))
+
     def __repr__(self):
         return "<%s: %r>" % (self.__class__.__name__, self.names())