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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/generate/data.py

Issue 443293003: Mojo: Add PRESUBMIT.py to mojo/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
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:
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator.py ('k') | mojo/public/tools/bindings/pylib/mojom/generate/module.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698