From a371153f6f8070880c1e3ed431cc0e9022b3925e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 9 May 2013 21:19:04 +0000 Subject: [PATCH] bitbake: lib: print is a function in moderm python, covert remaining users (Bitbake rev: d0b180d868390a464b6799ad90db6bbe0350e158) Signed-off-by: Richard Purdie --- bitbake/lib/bb/server/xmlrpc.py | 2 +- bitbake/lib/bb/ui/knotty.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py index 61bd57a..9482923 100644 --- a/bitbake/lib/bb/server/xmlrpc.py +++ b/bitbake/lib/bb/server/xmlrpc.py @@ -101,7 +101,7 @@ class BBTransport(xmlrpclib.Transport): if not response: break if self.verbose: - print "body:", repr(response) + print("body:", repr(response)) p.feed(response) file.close() diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 6834b83..6ea7d86 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -201,11 +201,11 @@ class TerminalFilter(object): content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) else: content = "Currently %s running tasks (%s of %s):" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total) - print content + print(content) lines = 1 + int(len(content) / (self.columns + 1)) for tasknum, task in enumerate(tasks): content = "%s: %s" % (tasknum, task) - print content + print(content) lines = lines + 1 + int(len(content) / (self.columns + 1)) self.footer_present = lines self.lastpids = runningpids[:] @@ -300,7 +300,7 @@ def main(server, eventHandler, tf = TerminalFilter): if log_exec_tty: tries = event.retries while tries: - print "Trying to run: %s" % event.prog + print("Trying to run: %s" % event.prog) if os.system(event.prog) == 0: break time.sleep(event.sleep_delay) -- 2.7.4