summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 21:19:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 22:28:24 +0100
commite5d077d57f7d150d5a0bb67fdc1c87a94091cafe (patch)
treea2a68e4c1393585b10e76852a342c9617e8c2827 /bitbake/lib/bb/ui/knotty.py
parent3e86a6cddef330e08170887104f0aebae96183a6 (diff)
downloadpoky-e5d077d57f7d150d5a0bb67fdc1c87a94091cafe.tar.gz
bitbake: lib: print is a function in moderm python, covert remaining users
(Bitbake rev: d0b180d868390a464b6799ad90db6bbe0350e158) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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)