Commits

Matt Chaput  committed 7624424

Added explicit __ne__ methods.

  • Participants
  • Parent commits 179da53

Comments (0)

Files changed (1)

File src/whoosh/fields.py

                     (self.unique == other.unique),
                     (self.column_type == other.column_type)))
 
+    def __ne__(self, other):
+        return not(self.__eq__(other))
+
     # Column methods
 
     def set_sortable(self, sortable):
         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())