From 5be86bdbbc04abcd18478a4337f629026da5e3cf Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 24 Dec 2015 14:09:58 +0100 Subject: [PATCH] LazyUUIDTaskSet: Make the lazy iteration behaviour as defualt --- tasklib/lazy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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): """ -- 2.39.5