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

Unified Diff: build/android/gyp/emma_instr.py

Issue 132463007: Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: build/android/gyp/emma_instr.py
diff --git a/build/android/gyp/emma_instr.py b/build/android/gyp/emma_instr.py
index 8d97ed38ae1c6030fa69ad936626b7843cfc91e3..1976f0b04bafe3238aeeb0cccf86ca26e352e94f 100755
--- a/build/android/gyp/emma_instr.py
+++ b/build/android/gyp/emma_instr.py
@@ -63,7 +63,7 @@ def _AddInstrumentOptions(option_parser):
'patterns separated with whitespace and/or comma.'))
-def _RunCopyCommand(command, options, args, option_parser):
+def _RunCopyCommand(_command, options, _args, option_parser):
"""Copies the jar from input to output locations.
Also removes any old coverage/sources file.
@@ -129,7 +129,7 @@ def _CreateSourcesFile(sources_string, sources_file, src_root):
json.dump(relative_sources, f)
-def _RunInstrumentCommand(command, options, args, option_parser):
+def _RunInstrumentCommand(command, options, _args, option_parser):
"""Instruments the classes/jar files using EMMA.
Args:
@@ -197,11 +197,11 @@ VALID_COMMANDS = {
}
-def main(argv):
+def main():
option_parser = command_option_parser.CommandOptionParser(
commands_dict=VALID_COMMANDS)
command_option_parser.ParseAndExecute(option_parser)
if __name__ == '__main__':
- sys.exit(main(sys.argv))
+ sys.exit(main())

Powered by Google App Engine
This is Rietveld 408576698