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 d7edaabf98ef0fbe9ce2c4de1a5e7365ed0bcdbf..40261cb6e45ac4a78cd7d25e1bd16a208047bc3f 100644 |
--- a/mojo/public/tools/bindings/pylib/mojom/generate/data.py |
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/data.py |
@@ -38,9 +38,9 @@ def istr(index, string): |
def __lt__(self, other): |
return self.__index__ < other.__index__ |
- istr = IndexedString(string) |
- istr.__index__ = index |
- return istr |
+ rv = IndexedString(string) |
+ rv.__index__ = index |
+ return rv |
def LookupKind(kinds, spec, scope): |
"""Tries to find which Kind a spec refers to, given the scope in which its |
@@ -350,7 +350,6 @@ def ModuleFromData(data): |
def OrderedModuleFromData(data): |
module = ModuleFromData(data) |
- next_interface_ordinal = 0 |
for interface in module.interfaces: |
next_ordinal = 0 |
for method in interface.methods: |