Index: mojo/public/tools/bindings/pylib/mojom/generate/generator.py |
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py |
index 8c3e6427d9e72df4e2f9f38b36d66e5fe61b6822..9c225b437a010bb4cbecc6d55ad695b47661397b 100644 |
--- a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py |
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py |
@@ -40,11 +40,13 @@ def WriteFile(contents, full_path): |
class Generator(object): |
# Pass |output_dir| to emit files to disk. Omit |output_dir| to echo all |
# files to stdout. |
- def __init__(self, module, output_dir=None, typemap={}, variant=None): |
+ def __init__(self, module, output_dir=None, typemap=None, variant=None, |
+ bytecode_path=None): |
self.module = module |
self.output_dir = output_dir |
- self.typemap = typemap |
+ self.typemap = typemap or {} |
self.variant = variant |
+ self.bytecode_path = bytecode_path |
def GetStructsFromMethods(self): |
result = [] |