⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268890 in webkit


Ignore:
Timestamp:
Oct 22, 2020, 1:32:53 PM (6 years ago)
Author:
aakash_jain@apple.com
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.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r268880 r268890  
     12020-10-22  Aakash Jain  <aakash_jain@apple.com>
     2
     3        report-non-inclusive-language should also report total for all the non-inclusive terms
     4        https://bugs.webkit.org/show_bug.cgi?id=218096
     5
     6        Reviewed by Darin Adler.
     7
     8        * Scripts/report-non-inclusive-language: Report total for all the non-inclusive terms. Also improved
     9        formatting of the output to make it one-line.
     10
    1112020-10-22  Aakash Jain  <aakash_jain@apple.com>
    212
  • trunk/Tools/Scripts/report-non-inclusive-language

    r268772 r268890  
    7979            term[2] = 0
    8080
    81 for term in nonInclusiveTerms:
    82     print("total " + term[0] + ": " + str(term[3]))
     81details = ['{}: {}'.format(term[0], term[3]) for term in nonInclusiveTerms]
     82total = sum([term[3] for term in nonInclusiveTerms])
     83print('Total: {} ({})'.format(total, ', '.join(details)))
Note: See TracChangeset for help on using the changeset viewer.