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

Unified Diff: tools/telemetry/telemetry/results/csv_pivot_table_output_formatter.py

Issue 739623005: [Telemetry] Resolve errors due to new pylint checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready to land Created 6 years, 1 month 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/telemetry/telemetry/results/csv_pivot_table_output_formatter.py
diff --git a/tools/telemetry/telemetry/results/csv_pivot_table_output_formatter.py b/tools/telemetry/telemetry/results/csv_pivot_table_output_formatter.py
index 02da431eaa8331ba77c96dfc3ec0c324acfda31a..eb3a1223efe878198d0911beec35fc092ffe9b27 100644
--- a/tools/telemetry/telemetry/results/csv_pivot_table_output_formatter.py
+++ b/tools/telemetry/telemetry/results/csv_pivot_table_output_formatter.py
@@ -35,7 +35,7 @@ class CsvPivotTableOutputFormatter(output_formatter.OutputFormatter):
# Observe trace_tag. Use comma to split up the trace tag.
tag_values = self._trace_tag.split(',')
- tag_values = filter(lambda x: x, tag_values) # filter empty list entries
+ tag_values = [x for x in tag_values if x] # filter empty list entries
tag_headers = ['trace_tag_%d' % i for i in range(len(tag_values))]
# Write header.

Powered by Google App Engine
This is Rietveld 408576698