From: Rob Golding Date: Thu, 22 Feb 2018 09:18:22 +0000 (+0000) Subject: Merge pull request #52 from robgolding/revert-51-patch-1 X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/71021035d292d8bc6c772b9191d4c16efcd9b07e?hp=1de91d347157b73cd240df7fa950b99ec221b304 Merge pull request #52 from robgolding/revert-51-patch-1 Revert "Removes redundant definition" --- diff --git a/tasklib/lazy.py b/tasklib/lazy.py index 7d8e0de..cb268f3 100644 --- a/tasklib/lazy.py +++ b/tasklib/lazy.py @@ -36,6 +36,9 @@ class LazyUUIDTask(object): # For saved Tasks, just define equality by equality of uuids return self['uuid'] == other['uuid'] + def __ne__(self, other): + return not self.__eq__(other) + def __hash__(self): return self['uuid'].__hash__()