mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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:
@@ -101,7 +101,7 @@ class BBTransport(xmlrpclib.Transport):
|
|||||||
if not response:
|
if not response:
|
||||||
break
|
break
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
print "body:", repr(response)
|
print("body:", repr(response))
|
||||||
p.feed(response)
|
p.feed(response)
|
||||||
|
|
||||||
file.close()
|
file.close()
|
||||||
|
|||||||
@@ -201,11 +201,11 @@ class TerminalFilter(object):
|
|||||||
content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total)
|
content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total)
|
||||||
else:
|
else:
|
||||||
content = "Currently %s running tasks (%s of %s):" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total)
|
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))
|
lines = 1 + int(len(content) / (self.columns + 1))
|
||||||
for tasknum, task in enumerate(tasks):
|
for tasknum, task in enumerate(tasks):
|
||||||
content = "%s: %s" % (tasknum, task)
|
content = "%s: %s" % (tasknum, task)
|
||||||
print content
|
print(content)
|
||||||
lines = lines + 1 + int(len(content) / (self.columns + 1))
|
lines = lines + 1 + int(len(content) / (self.columns + 1))
|
||||||
self.footer_present = lines
|
self.footer_present = lines
|
||||||
self.lastpids = runningpids[:]
|
self.lastpids = runningpids[:]
|
||||||
@@ -300,7 +300,7 @@ def main(server, eventHandler, tf = TerminalFilter):
|
|||||||
if log_exec_tty:
|
if log_exec_tty:
|
||||||
tries = event.retries
|
tries = event.retries
|
||||||
while tries:
|
while tries:
|
||||||
print "Trying to run: %s" % event.prog
|
print("Trying to run: %s" % event.prog)
|
||||||
if os.system(event.prog) == 0:
|
if os.system(event.prog) == 0:
|
||||||
break
|
break
|
||||||
time.sleep(event.sleep_delay)
|
time.sleep(event.sleep_delay)
|
||||||
|
|||||||
Reference in New Issue
Block a user