summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/utils/oe
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-04 16:06:14 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-14 07:26:41 +0100
commitee6979a19c77931c3cf6368e695e370d46192fef (patch)
tree6172895493cc702eb9a97c0cc0a848c93bedb136 /scripts/lib/wic/utils/oe
parent1cb484ab99eabb5c24792757ab09d7f170f2e614 (diff)
downloadopenembedded-core-ee6979a19c77931c3cf6368e695e370d46192fef.tar.gz
openembedded-core-ee6979a19c77931c3cf6368e695e370d46192fef.tar.bz2
openembedded-core-ee6979a19c77931c3cf6368e695e370d46192fef.zip
wic: replace print statements with print function
Print statements have been replaced with print function in Python 3. Replaced them in wic code to be able to run it under both Python 2 and Python 3. [YOCTO #9412] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/utils/oe')
-rw-r--r--scripts/lib/wic/utils/oe/misc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index a3cbe5f1e2..11209be58e 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -187,8 +187,8 @@ class BitbakeVars(defaultdict):
for line in varsfile:
self._parse_line(line, image)
else:
- print "Couldn't get bitbake variable from %s." % fname
- print "File %s doesn't exist." % fname
+ print("Couldn't get bitbake variable from %s." % fname)
+ print("File %s doesn't exist." % fname)
return
else:
# Get bitbake -e output
@@ -202,8 +202,8 @@ class BitbakeVars(defaultdict):
msger.set_loglevel(log_level)
if ret:
- print "Couldn't get '%s' output." % cmd
- print "Bitbake failed with error:\n%s\n" % lines
+ print("Couldn't get '%s' output." % cmd)
+ print("Bitbake failed with error:\n%s\n" % lines)
return
# Parse bitbake -e output