summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r--bitbake/lib/bb/ui/knotty.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 6834b83b24..6ea7d8694c 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -201,11 +201,11 @@ class TerminalFilter(object):
201 content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) 201 content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total)
202 else: 202 else:
203 content = "Currently %s running tasks (%s of %s):" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total) 203 content = "Currently %s running tasks (%s of %s):" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total)
204 print content 204 print(content)
205 lines = 1 + int(len(content) / (self.columns + 1)) 205 lines = 1 + int(len(content) / (self.columns + 1))
206 for tasknum, task in enumerate(tasks): 206 for tasknum, task in enumerate(tasks):
207 content = "%s: %s" % (tasknum, task) 207 content = "%s: %s" % (tasknum, task)
208 print content 208 print(content)
209 lines = lines + 1 + int(len(content) / (self.columns + 1)) 209 lines = lines + 1 + int(len(content) / (self.columns + 1))
210 self.footer_present = lines 210 self.footer_present = lines
211 self.lastpids = runningpids[:] 211 self.lastpids = runningpids[:]
@@ -300,7 +300,7 @@ def main(server, eventHandler, tf = TerminalFilter):
300 if log_exec_tty: 300 if log_exec_tty:
301 tries = event.retries 301 tries = event.retries
302 while tries: 302 while tries:
303 print "Trying to run: %s" % event.prog 303 print("Trying to run: %s" % event.prog)
304 if os.system(event.prog) == 0: 304 if os.system(event.prog) == 0:
305 break 305 break
306 time.sleep(event.sleep_delay) 306 time.sleep(event.sleep_delay)