diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-06 21:58:07 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-06 21:58:32 -0700 |
commit | 89ce8df075ac8c9a5478c86405e6e6b60346a51c (patch) | |
tree | 82165c41f1093571cfc3e69c3e2f056ba6441f9d /lib/bb/ui/knotty.py | |
parent | c3d005cbbae3d56da9926666cfb1501c2bf96ea7 (diff) | |
download | bitbake-89ce8df075ac8c9a5478c86405e6e6b60346a51c.tar.gz |
knotty: use enumerate for task waiting
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/ui/knotty.py')
-rw-r--r-- | lib/bb/ui/knotty.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index b94a3a890..dea1fd99a 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -118,10 +118,8 @@ def init(server, eventHandler): activetasks, failedtasks = helper.getTasks() if activetasks: print("Waiting for %s active tasks to finish:" % len(activetasks)) - tasknum = 1 - for task in activetasks: + for tasknum, task in enumerate(activetasks): print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task)) - tasknum = tasknum + 1 if isinstance(event, logging.LogRecord): logger.handle(event) |