Commit 67063da3 authored by Dale Curtis's avatar Dale Curtis Committed by Chromium LUCI CQ

Fix python3 issues with binary_proto_generator.py

Missing ()s around print().

Bug: 941669
Change-Id: Iafb67f9f3b04e068bb91310612b8e64eaeb25b47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2638537Reviewed-by: default avatarMustafa Emre Acer <meacer@chromium.org>
Reviewed-by: default avatarDirk Pranke <dpranke@google.com>
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Auto-Submit: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845030}
parent 727ef12d
......@@ -7,7 +7,7 @@
Converts a given ASCII proto into a binary resource.
"""
from __future__ import print_function
import abc
import imp
import optparse
......@@ -196,12 +196,12 @@ class BinaryProtoGenerator:
self._ImportProtoModules(opts.path)
if not self.VerifyArgs(opts):
print "Wrong arguments"
print("Wrong arguments")
return 1
try:
self._GenerateBinaryProtos(opts)
except Exception as e:
print "ERROR: Failed to render binary version of %s:\n %s\n%s" % (
opts.infile, str(e), traceback.format_exc())
print("ERROR: Failed to render binary version of %s:\n %s\n%s" %
(opts.infile, str(e), traceback.format_exc()))
return 1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment