summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/bindings/scripts/build_web_idl_database.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/bindings/scripts/build_web_idl_database.py')
-rw-r--r--chromium/third_party/blink/renderer/bindings/scripts/build_web_idl_database.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/chromium/third_party/blink/renderer/bindings/scripts/build_web_idl_database.py b/chromium/third_party/blink/renderer/bindings/scripts/build_web_idl_database.py
index a277ddb0ccb..3629e9c51ba 100644
--- a/chromium/third_party/blink/renderer/bindings/scripts/build_web_idl_database.py
+++ b/chromium/third_party/blink/renderer/bindings/scripts/build_web_idl_database.py
@@ -1,7 +1,6 @@
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-
"""
Builds Web IDL database.
@@ -17,11 +16,13 @@ import web_idl
def parse_options():
parser = optparse.OptionParser()
- parser.add_option('--output', type='string',
- help="filepath of the resulting database")
- parser.add_option('--runtime_enabled_features', type='string',
- action='append',
- help="filepath to runtime_enabled_features.json5")
+ parser.add_option(
+ '--output', type='string', help="filepath of the resulting database")
+ parser.add_option(
+ '--runtime_enabled_features',
+ type='string',
+ action='append',
+ help="filepath to runtime_enabled_features.json5")
options, args = parser.parse_args()
required_option_names = ('output', 'runtime_enabled_features')
@@ -47,8 +48,8 @@ def main():
was_error_reported[0] = True
sys.stderr.writelines([message, "\n"])
- database = web_idl.build_database(filepaths=filepaths,
- report_error=report_error)
+ database = web_idl.build_database(
+ filepaths=filepaths, report_error=report_error)
if was_error_reported[0]:
sys.exit("Aborted due to error.")