[Secure-testing-commits] r38901 - bin

Mike Gabriel sunweaver at moszumanska.debian.org
Thu Jan 14 08:46:39 UTC 2016


Author: sunweaver
Date: 2016-01-14 08:46:39 +0000 (Thu, 14 Jan 2016)
New Revision: 38901

Modified:
   bin/lts-cve-triage.py
Log:
Use .format(**<dict>) for formatting LIST_NAMES. Wrap long-lines (using multi-line quoted strings).

Modified: bin/lts-cve-triage.py
===================================================================
--- bin/lts-cve-triage.py	2016-01-14 08:36:40 UTC (rev 38900)
+++ bin/lts-cve-triage.py	2016-01-14 08:46:39 UTC (rev 38901)
@@ -20,24 +20,28 @@
 
 from tracker_data import TrackerData, RELEASES
 
-this_lts = RELEASES['lts']
-next_lts = RELEASES['next_lts']
-
 LIST_NAMES = (
     ('triage_already_in_dsa_needed',
-     'Issues to triage for {this_lts} that are already in dsa-needed'.format(this_lts=this_lts)),
+     ('Issues to triage for {lts} that are already in dsa-needed'
+     ).format(**RELEASES)),
     ('triage_likely_nodsa',
-     'Issues to triage for {this_lts} that are no-dsa in {next_lts}'.format(this_lts=this_lts, next_lts=next_lts)),
+     ('Issues to triage for {lts} that are no-dsa in {next_lts}'
+     ).format(**RELEASES)),
     ('triage_possible_easy_fixes',
-     'Issues not yet triaged for {}, but probably easy to fix (because already fixed in {})'.format(this_lts, next_lts)),
+     ('Issues not yet triaged for {lts}, but probably easy to fix (because'
+      'already fixed in {next_lts})'
+     ).format(**RELEASES)),
     ('triage_other_not_triaged_in_next_lts',
-     'Other issues to triage for {this_lts} (not yet triaged for {next_lts})'.format(this_lts=this_lts, next_lts=next_lts)),
+     ('Other issues to triage for {lts} (not yet triaged for {next_lts})'
+     ).format(**RELEASES)),
     ('triage_other',
      'Other issues to triage (no special status)'),
     ('unexpected_nodsa',
-     'Issues tagged no-dsa in {this_lts} that are open in {next_lts}'.format(this_lts=this_lts, next_lts=next_lts)),
+     ('Issues tagged no-dsa in {lts} that are open in {next_lts}'
+     ).format(**RELEASES)),
     ('possible_easy_fixes',
-     'Issues from dla-needed.txt that are already fixed in {next_lts}'.format(next_lts=next_lts)),
+     ('Issues from dla-needed.txt that are already fixed in {next_lts}'
+     ).format(**RELEASES)),
 )
 
 lists = collections.defaultdict(lambda: collections.defaultdict(lambda: []))




More information about the Secure-testing-commits mailing list