binman: Convert print statements to Python 3

Update all print statements to be functions, as required by Python 3.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2019-05-14 15:53:37 -06:00
parent 5a1af1dafe
commit 2ca8468026
2 changed files with 12 additions and 8 deletions

View File

@@ -5,6 +5,8 @@
# Creates binary images from input files controlled by a description
#
from __future__ import print_function
from collections import OrderedDict
import os
import sys
@@ -134,7 +136,7 @@ def Binman(options, args):
del images[name]
skip.append(name)
if skip and options.verbosity >= 2:
print 'Skipping images: %s' % ', '.join(skip)
print('Skipping images: %s' % ', '.join(skip))
state.Prepare(images, dtb)
@@ -170,7 +172,7 @@ def Binman(options, args):
except Exception as e:
if options.map:
fname = image.WriteMap()
print "Wrote map file '%s' to show errors" % fname
print("Wrote map file '%s' to show errors" % fname)
raise
image.SetImagePos()
if options.update_fdt: