bitbake: lib: print is a function in moderm python, covert remaining users

(Bitbake rev: d0b180d868390a464b6799ad90db6bbe0350e158)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2013-05-09 21:19:04 +00:00
parent 3e86a6cdde
commit e5d077d57f
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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)