summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 08:29:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 09:31:23 +0100
commit9094ea9fdd1f23cbc9f7a9d0d95fb330c5ea8906 (patch)
treeac254d468956292d45e9ab7ead3fbe16f1558f62 /meta/lib
parentca2edae7c3585204a11f6d9d69351d37880bf761 (diff)
downloadpoky-9094ea9fdd1f23cbc9f7a9d0d95fb330c5ea8906.tar.gz
classes/oeqa: Update for print statements and file() -> open() for python3uninative-1.0
Found some more syntax cleanups needed for python3. (From OE-Core rev: 1181d86e8707c5b8e8d43d5e785d7d9cf01fa491) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
-rw-r--r--meta/lib/oeqa/utils/qemutinyrunner.py2
-rw-r--r--meta/lib/oeqa/utils/testexport.py6
3 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 784cf964f5..4bede3421c 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -354,7 +354,7 @@ class QemuRunner:
354 if p not in parents: 354 if p not in parents:
355 parents.append(p) 355 parents.append(p)
356 newparents = next 356 newparents = next
357 #print "Children matching %s:" % str(parents) 357 #print("Children matching %s:" % str(parents))
358 for p in parents: 358 for p in parents:
359 # Need to be careful here since runqemu-internal runs "ldd qemu-system-xxxx" 359 # Need to be careful here since runqemu-internal runs "ldd qemu-system-xxxx"
360 # Also, old versions of ldd (2.11) run "LD_XXXX qemu-system-xxxx" 360 # Also, old versions of ldd (2.11) run "LD_XXXX qemu-system-xxxx"
diff --git a/meta/lib/oeqa/utils/qemutinyrunner.py b/meta/lib/oeqa/utils/qemutinyrunner.py
index 4f95101f30..e3d8c669e0 100644
--- a/meta/lib/oeqa/utils/qemutinyrunner.py
+++ b/meta/lib/oeqa/utils/qemutinyrunner.py
@@ -160,7 +160,7 @@ class QemuTinyRunner(QemuRunner):
160 if p not in parents: 160 if p not in parents:
161 parents.append(p) 161 parents.append(p)
162 newparents = next 162 newparents = next
163 #print "Children matching %s:" % str(parents) 163 #print("Children matching %s:" % str(parents))
164 for p in parents: 164 for p in parents:
165 # Need to be careful here since runqemu-internal runs "ldd qemu-system-xxxx" 165 # Need to be careful here since runqemu-internal runs "ldd qemu-system-xxxx"
166 # Also, old versions of ldd (2.11) run "LD_XXXX qemu-system-xxxx" 166 # Also, old versions of ldd (2.11) run "LD_XXXX qemu-system-xxxx"
diff --git a/meta/lib/oeqa/utils/testexport.py b/meta/lib/oeqa/utils/testexport.py
index 243463bc15..4fbf4bdcb3 100644
--- a/meta/lib/oeqa/utils/testexport.py
+++ b/meta/lib/oeqa/utils/testexport.py
@@ -17,13 +17,13 @@ except ImportError:
17 pass 17 pass
18 def plain(self, msg): 18 def plain(self, msg):
19 if msg: 19 if msg:
20 print msg 20 print(msg)
21 def warn(self, msg): 21 def warn(self, msg):
22 if msg: 22 if msg:
23 print "WARNING: " + msg 23 print("WARNING: " + msg)
24 def fatal(self, msg): 24 def fatal(self, msg):
25 if msg: 25 if msg:
26 print "FATAL:" + msg 26 print("FATAL:" + msg)
27 sys.exit(1) 27 sys.exit(1)
28 bb = my_log() 28 bb = my_log()
29 29