Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Unified Diff: mojo/public/tools/bindings/mojom_bindings_generator.py

Issue 2835613002: Remove redundant "type=str" in Mojo bindings generator. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/mojom_bindings_generator.py
diff --git a/mojo/public/tools/bindings/mojom_bindings_generator.py b/mojo/public/tools/bindings/mojom_bindings_generator.py
index a9650d77640776f4fa9e0814236fee5b22a7e98b..70f1c09566a6f17d6530988aaf41bb7dd004164b 100755
--- a/mojo/public/tools/bindings/mojom_bindings_generator.py
+++ b/mojo/public/tools/bindings/mojom_bindings_generator.py
@@ -288,7 +288,7 @@ def main():
generate_parser.add_argument("--variant", dest="variant", default=None,
help="output a named variant of the bindings")
generate_parser.add_argument(
- "--bytecode_path", type=str, required=True, help=(
+ "--bytecode_path", required=True, help=(
"the path from which to load template bytecode; to generate template "
"bytecode, run %s precompile BYTECODE_PATH" % os.path.basename(
sys.argv[0])))
@@ -303,21 +303,21 @@ def main():
help="Use the new module loading approach and the core API exposed by "
"Web IDL. This option only affects the JavaScript bindings.")
generate_parser.add_argument(
- "--export_attribute", type=str, default="",
+ "--export_attribute", default="",
help="Optional attribute to specify on class declaration to export it "
"for the component build.")
generate_parser.add_argument(
- "--export_header", type=str, default="",
+ "--export_header", default="",
help="Optional header to include in the generated headers to support the "
"component build.")
generate_parser.add_argument(
"--generate_non_variant_code", action="store_true",
help="Generate code that is shared by different variants.")
generate_parser.add_argument(
- "--depfile", type=str,
+ "--depfile",
help="A file into which the list of input files will be written.")
generate_parser.add_argument(
- "--depfile_target", type=str,
+ "--depfile_target",
help="The target name to use in the depfile.")
generate_parser.set_defaults(func=_Generate)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698