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

Unified Diff: build/android/pylib/instrumentation/json_perf_parser.py

Issue 153743008: Revert of Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with changes to pylib/linker/test_case.py. Created 6 years, 10 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
« no previous file with comments | « build/android/pylib/host_driven/tests_annotations.py ('k') | build/android/pylib/instrumentation/setup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/instrumentation/json_perf_parser.py
diff --git a/build/android/pylib/instrumentation/json_perf_parser.py b/build/android/pylib/instrumentation/json_perf_parser.py
index ffdfbe7c548f0a4589197a20ef5f217d85d284ff..e5e9d576001ec25050015aa6b5c697d57d478eeb 100644
--- a/build/android/pylib/instrumentation/json_perf_parser.py
+++ b/build/android/pylib/instrumentation/json_perf_parser.py
@@ -125,8 +125,7 @@ def GetAverageRunInfo(json_data, name):
if entry['ph'] == 'I':
result['type'] = 'Instant'
last_val = val
- if result['count'] > 0:
- result['average'] = total_sum / result['count']
+ if result['count'] > 0: result['average'] = total_sum / result['count']
return result
« no previous file with comments | « build/android/pylib/host_driven/tests_annotations.py ('k') | build/android/pylib/instrumentation/setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698