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

Unified Diff: tools/json_schema_compiler/model.py

Issue 849103005: Cleanup most pylint errors in json_schema_compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: tools/json_schema_compiler/model.py
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 16530e7f465b2e523958c8e00afdc8c1e6f652d1..7745dcc4fcc1cf1624de72a57ea495ff1d43ecda 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -304,8 +304,8 @@ class Function(object):
def GeneratePropertyFromParam(p):
return Property(self, p['name'], p, namespace, origin)
- self.filters = [GeneratePropertyFromParam(filter)
- for filter in json.get('filters', [])]
+ self.filters = [GeneratePropertyFromParam(filter_instance)
+ for filter_instance in json.get('filters', [])]
callback_param = None
for param in json.get('parameters', []):
if param.get('type') == 'function':

Powered by Google App Engine
This is Rietveld 408576698