Commit 9f6cd486 authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

//third_party/blink/renderer/build/scripts: Use Python 3 style print statements

Initial conversion performed using "2to3 -f print .".
Imports added and duplicate parentheses removed manually.

There are no functional changes.

Bug: 941669
Change-Id: I32f540c49bfdf183a1514755ea140592b502e58c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2124612
Auto-Submit: Raul Tambre <raul@tambre.ee>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754402}
parent 8bb4fbef
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
from __future__ import print_function
def _RunBindingsTests(input_api, output_api): def _RunBindingsTests(input_api, output_api):
pardir = input_api.os_path.pardir pardir = input_api.os_path.pardir
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import print_function
import copy import copy
import os import os
...@@ -175,5 +177,5 @@ class InFile(object): ...@@ -175,5 +177,5 @@ class InFile(object):
def _fatal(self, message): def _fatal(self, message):
# FIXME: This should probably raise instead of exit(1) # FIXME: This should probably raise instead of exit(1)
print message print(message)
exit(1) exit(1)
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import print_function
import os import os
import os.path import os.path
import shlex import shlex
...@@ -94,7 +96,7 @@ class Maker(object): ...@@ -94,7 +96,7 @@ class Maker(object):
script_name = os.path.basename(argv[0]) script_name = os.path.basename(argv[0])
args = argv[1:] args = argv[1:]
if len(args) < 1: if len(args) < 1:
print "USAGE: %s INPUT_FILES" % script_name print("USAGE: %s INPUT_FILES" % script_name)
exit(1) exit(1)
parser = optparse.OptionParser() parser = optparse.OptionParser()
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import print_function
import os.path import os.path
import sys import sys
...@@ -103,7 +105,7 @@ class EventFactoryWriter(json5_generator.Writer): ...@@ -103,7 +105,7 @@ class EventFactoryWriter(json5_generator.Writer):
} }
def _fatal(self, message): def _fatal(self, message):
print 'FATAL ERROR: ' + message print('FATAL ERROR: ' + message)
exit(1) exit(1)
def _headers_header_include_path(self, entry): def _headers_header_include_path(self, entry):
......
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