mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 22:39:49 +02:00
classes/oeqa: Update for print statements and file() -> open() for python3
Found some more syntax cleanups needed for python3. (From OE-Core rev: 1181d86e8707c5b8e8d43d5e785d7d9cf01fa491) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -354,7 +354,7 @@ class QemuRunner:
|
||||
if p not in parents:
|
||||
parents.append(p)
|
||||
newparents = next
|
||||
#print "Children matching %s:" % str(parents)
|
||||
#print("Children matching %s:" % str(parents))
|
||||
for p in parents:
|
||||
# Need to be careful here since runqemu-internal runs "ldd qemu-system-xxxx"
|
||||
# Also, old versions of ldd (2.11) run "LD_XXXX qemu-system-xxxx"
|
||||
|
||||
@@ -160,7 +160,7 @@ class QemuTinyRunner(QemuRunner):
|
||||
if p not in parents:
|
||||
parents.append(p)
|
||||
newparents = next
|
||||
#print "Children matching %s:" % str(parents)
|
||||
#print("Children matching %s:" % str(parents))
|
||||
for p in parents:
|
||||
# Need to be careful here since runqemu-internal runs "ldd qemu-system-xxxx"
|
||||
# Also, old versions of ldd (2.11) run "LD_XXXX qemu-system-xxxx"
|
||||
|
||||
@@ -17,13 +17,13 @@ except ImportError:
|
||||
pass
|
||||
def plain(self, msg):
|
||||
if msg:
|
||||
print msg
|
||||
print(msg)
|
||||
def warn(self, msg):
|
||||
if msg:
|
||||
print "WARNING: " + msg
|
||||
print("WARNING: " + msg)
|
||||
def fatal(self, msg):
|
||||
if msg:
|
||||
print "FATAL:" + msg
|
||||
print("FATAL:" + msg)
|
||||
sys.exit(1)
|
||||
bb = my_log()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user