Index: mojo/public/tools/bindings/pylib/mojom/generate/data.py |
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/data.py b/mojo/public/tools/bindings/pylib/mojom/generate/data.py |
index 60ae1e0d4c55e3df67b6db1c6cfc508696505527..e8c71f33d938ae2201981ec35934eaaefda058ae 100644 |
--- a/mojo/public/tools/bindings/pylib/mojom/generate/data.py |
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/data.py |
@@ -225,12 +225,12 @@ def StructFromData(module, data): |
struct.fields_data = data['fields'] |
struct.attributes = data.get('attributes') |
- # Enforce that a [native=True] attribute is set to make native-only struct |
+ # Enforce that a [Native=True] attribute is set to make native-only struct |
# declarations more explicit. |
if struct.native_only: |
- if not struct.attributes or not struct.attributes.get('native', False): |
+ if not struct.attributes or not struct.attributes.get('Native', False): |
raise Exception("Native-only struct declarations must include a " + |
- "native=True attribute.") |
+ "Native=True attribute.") |
return struct |