From: Tomas Babej Date: Thu, 24 Dec 2015 13:09:58 +0000 (+0100) Subject: LazyUUIDTaskSet: Make the lazy iteration behaviour as defualt X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/5be86bdbbc04abcd18478a4337f629026da5e3cf?ds=inline LazyUUIDTaskSet: Make the lazy iteration behaviour as defualt --- diff --git a/tasklib/lazy.py b/tasklib/lazy.py index 0050547..260acdf 100644 --- a/tasklib/lazy.py +++ b/tasklib/lazy.py @@ -85,9 +85,8 @@ class LazyUUIDTaskSet(object): return len(self._uuids) def __iter__(self): - self.replace() - for task in self: - yield task + for uuid in self._uuids: + yield LazyUUIDTask(self._tw, uuid) def replace(self): """