summaryrefslogtreecommitdiffstats
path: root/bitbake
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
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')
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py2
-rw-r--r--bitbake/lib/bb/ui/knotty.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index 61bd57a530..9482923df4 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -101,7 +101,7 @@ class BBTransport(xmlrpclib.Transport):
101 if not response: 101 if not response:
102 break 102 break
103 if self.verbose: 103 if self.verbose:
104 print "body:", repr(response) 104 print("body:", repr(response))
105 p.feed(response) 105 p.feed(response)
106 106
107 file.close() 107 file.close()
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)