summaryrefslogtreecommitdiffstats
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 23:05:13 +0100
commit0c57dd96c85612e2c616966ae21fcbbb11bdc066 (patch)
tree4895dd1b43faf418375d4fdf2d91745ac34d302f /scripts/lib/wic/utils/oe
parent4dadbbdd46195fc60cd91f589102bca31cea3c2e (diff)
downloadpoky-0c57dd96c85612e2c616966ae21fcbbb11bdc066.tar.gz
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] (From OE-Core rev: ee6979a19c77931c3cf6368e695e370d46192fef) 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):
187 for line in varsfile: 187 for line in varsfile:
188 self._parse_line(line, image) 188 self._parse_line(line, image)
189 else: 189 else:
190 print "Couldn't get bitbake variable from %s." % fname 190 print("Couldn't get bitbake variable from %s." % fname)
191 print "File %s doesn't exist." % fname 191 print("File %s doesn't exist." % fname)
192 return 192 return
193 else: 193 else:
194 # Get bitbake -e output 194 # Get bitbake -e output
@@ -202,8 +202,8 @@ class BitbakeVars(defaultdict):
202 msger.set_loglevel(log_level) 202 msger.set_loglevel(log_level)
203 203
204 if ret: 204 if ret:
205 print "Couldn't get '%s' output." % cmd 205 print("Couldn't get '%s' output." % cmd)
206 print "Bitbake failed with error:\n%s\n" % lines 206 print("Bitbake failed with error:\n%s\n" % lines)
207 return 207 return
208 208
209 # Parse bitbake -e output 209 # Parse bitbake -e output