X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/dcf6974cde7c3c425522bd5e8a582f7a9aa6c8ac..9a7dac4599f198c52f268ae8bcc0267743ef934f:/tasklib/lazy.py?ds=sidebyside diff --git a/tasklib/lazy.py b/tasklib/lazy.py index cb268f3..e5b3492 100644 --- a/tasklib/lazy.py +++ b/tasklib/lazy.py @@ -106,7 +106,7 @@ class LazyUUIDTaskSet(object): return 'LazyUUIDTaskSet([{0}])'.format(', '.join(self._uuids)) def __eq__(self, other): - return set(t['uuid'] for t in other) == self._uuids + return (set(t['uuid'] for t in other) if other else set()) == self._uuids def __ne__(self, other): return not (self == other)