Title: [268890] trunk/Tools
Revision
268890
Author
[email protected]
Date
2020-10-22 13:32:53 -0700 (Thu, 22 Oct 2020)

Log Message

report-non-inclusive-language should also report total for all the non-inclusive terms
https://bugs.webkit.org/show_bug.cgi?id=218096

Reviewed by Darin Adler.

* Scripts/report-non-inclusive-language: Report total for all the non-inclusive terms. Also improved
formatting of the output to make it one-line.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (268889 => 268890)


--- trunk/Tools/ChangeLog	2020-10-22 20:31:49 UTC (rev 268889)
+++ trunk/Tools/ChangeLog	2020-10-22 20:32:53 UTC (rev 268890)
@@ -1,5 +1,15 @@
 2020-10-22  Aakash Jain  <[email protected]>
 
+        report-non-inclusive-language should also report total for all the non-inclusive terms
+        https://bugs.webkit.org/show_bug.cgi?id=218096
+
+        Reviewed by Darin Adler.
+
+        * Scripts/report-non-inclusive-language: Report total for all the non-inclusive terms. Also improved
+        formatting of the output to make it one-line.
+
+2020-10-22  Aakash Jain  <[email protected]>
+
         [webkitpy] Rename slave to worker in perftestsrunner
         https://bugs.webkit.org/show_bug.cgi?id=218082
 

Modified: trunk/Tools/Scripts/report-non-inclusive-language (268889 => 268890)


--- trunk/Tools/Scripts/report-non-inclusive-language	2020-10-22 20:31:49 UTC (rev 268889)
+++ trunk/Tools/Scripts/report-non-inclusive-language	2020-10-22 20:32:53 UTC (rev 268890)
@@ -78,5 +78,6 @@
             term[3] += term[2]
             term[2] = 0
 
-for term in nonInclusiveTerms:
-    print("total " + term[0] + ": " + str(term[3]))
+details = ['{}: {}'.format(term[0], term[3]) for term in nonInclusiveTerms]
+total = sum([term[3] for term in nonInclusiveTerms])
+print('Total: {} ({})'.format(total, ', '.join(details)))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to