Bug 1344853 - Enable flake8 rule E127: "make more readable. continuation line over-indented for visual indent". r?dexter draft
authorKonstantin <kpstsp@gmail.com>
Mon, 20 Mar 2017 23:20:06 +0300
changeset 501692 cbf4351acc9f
parent 501185 af13398d3845
child 549969 8ee0a7049e2a
push id50080
push userbmo:kpstsp@gmail.com
push dateMon, 20 Mar 2017 20:29:43 +0000
reviewersdexter
bugs1344853
milestone55.0a1
Bug 1344853 - Enable flake8 rule E127: "make more readable. continuation line over-indented for visual indent". r?dexter MozReview-Commit-ID: AxLNkpQGjRI
toolkit/components/telemetry/gen-event-data.py
--- a/toolkit/components/telemetry/gen-event-data.py
+++ b/toolkit/components/telemetry/gen-event-data.py
@@ -72,22 +72,22 @@ def write_common_event_table(events, out
         # Write a comment to make the file human-readable.
         print("  // category: %s" % e.category, file=output)
         print("  // methods: [%s]" % ", ".join(e.methods), file=output)
         print("  // objects: [%s]" % ", ".join(e.objects), file=output)
 
         # Write the common info structure
         print("  {%d, %d, %d, %d, %d, %s, %s}," %
               (string_table.stringIndex(e.category),
-              string_table.stringIndex(e.expiry_version),
-              extras[0], # extra keys index
-              extras[1], # extra keys count
-              e.expiry_day,
-              e.dataset,
-              " | ".join(e.record_in_processes_enum)),
+               string_table.stringIndex(e.expiry_version),
+               extras[0], # extra keys index
+               extras[1], # extra keys count
+               e.expiry_day,
+               e.dataset,
+               " | ".join(e.record_in_processes_enum)),
               file=output)
 
     print("};", file=output)
     static_assert(output, "sizeof(%s) <= UINT32_MAX" % table_name,
                   "index overflow")
 
 
 def write_event_table(events, output, string_table):
@@ -97,18 +97,18 @@ def write_event_table(events, output, st
     for common_info_index,e in enumerate(events):
         for method_name, object_name in itertools.product(e.methods, e.objects):
             print("  // category: %s, method: %s, object: %s" %
                   (e.category, method_name, object_name),
                   file=output)
 
             print("  {gCommonEventInfo[%d], %d, %d}," %
                   (common_info_index,
-                  string_table.stringIndex(method_name),
-                  string_table.stringIndex(object_name)),
+                   string_table.stringIndex(method_name),
+                   string_table.stringIndex(object_name)),
                   file=output)
 
     print("};", file=output)
     static_assert(output, "sizeof(%s) <= UINT32_MAX" % table_name,
                   "index overflow")
 
 
 def main(output, *filenames):