Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / chromite / scripts / cros_generate_local_binhosts.py
index bbd7d46..c85995a 100644 (file)
@@ -8,6 +8,8 @@ Generates a file that sets the specified board's binhosts to include all of the
 other compatible boards in this buildroot.
 """
 
+from __future__ import print_function
+
 import collections
 import glob
 import optparse
@@ -67,8 +69,8 @@ def main(argv):
       by_compatibility[compat_id].add(other_board)
 
   if compatible_boards is None:
-    print >> sys.stderr, "Missing portageq wrapper for %s" % flags.board
+    print('Missing portageq wrapper for %s' % flags.board, file=sys.stderr)
     sys.exit(1)
 
-  print "# Generated by cros_generate_local_binhosts."
-  print GenerateBinhostLine(flags.build_root, compatible_boards)
+  print('# Generated by cros_generate_local_binhosts.')
+  print(GenerateBinhostLine(flags.build_root, compatible_boards))