diff --git a/solar/dblayer/lfu_cache.py b/solar/dblayer/lfu_cache.py index 7040e30e..4970f6d6 100644 --- a/solar/dblayer/lfu_cache.py +++ b/solar/dblayer/lfu_cache.py @@ -68,6 +68,9 @@ class LFUCache(object): else: return self == other + def __ne__(self, other): + return not self.__eq__(other) + def __setitem__(self, item, value): self.set(item, value) diff --git a/solar/dblayer/proxy.py b/solar/dblayer/proxy.py index b4e48c8c..fd5215d4 100644 --- a/solar/dblayer/proxy.py +++ b/solar/dblayer/proxy.py @@ -34,5 +34,8 @@ class DBLayerProxy(wrapt.ObjectProxy): return self.__wrapped__ == other return self.__wrapped__ == other.__wrapped__ + def __ne__(self, other): + return not self.__eq__(other) + def __repr__(self): return "" % self.__wrapped__ diff --git a/solar/dblayer/solar_models.py b/solar/dblayer/solar_models.py index 9179bc14..a332ec6c 100644 --- a/solar/dblayer/solar_models.py +++ b/solar/dblayer/solar_models.py @@ -1087,6 +1087,9 @@ class Task(Model): return self.key == other return self.key == other.key + def __ne__(self, other): + return not self.__eq__(other) + def __repr__(self): return 'Task(execution={} name={})'.format(self.execution, self.name)