r55983 - sandbox/trunk/pep0/pep0/constants.py sandbox/trunk/pep0/pep0/output.py
Author: brett.cannon Date: Fri Jun 15 04:49:18 2007 New Revision: 55983 Modified: sandbox/trunk/pep0/pep0/constants.py sandbox/trunk/pep0/pep0/output.py Log: Fix the output of type and status of a PEP. Modified: sandbox/trunk/pep0/pep0/constants.py ============================================================================== --- sandbox/trunk/pep0/pep0/constants.py (original) +++ sandbox/trunk/pep0/pep0/constants.py Fri Jun 15 04:49:18 2007 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -column_format = ' %(status)1s%(type)1s %(number)4s %(title)-44s %(authors)-s' +column_format = ' %(type)1s%(status)1s %(number)4s %(title)-44s %(authors)-s' header = """PEP: 0 Title: Index of Python Enhancement Proposals (PEPs) Modified: sandbox/trunk/pep0/pep0/output.py ============================================================================== --- sandbox/trunk/pep0/pep0/output.py (original) +++ sandbox/trunk/pep0/pep0/output.py Fri Jun 15 04:49:18 2007 @@ -36,9 +36,9 @@ elif pep.status in ('Rejected', 'Withdrawn', 'Deferred', 'Incomplete'): dead.append(pep) - elif pep.status == 'Process': + elif pep.type_ == 'Process': meta.append(pep) - elif pep.status == 'Informational': + elif pep.type_ == 'Informational': info.append(pep) elif pep.status == 'Accepted': accepted.append(pep) @@ -56,7 +56,7 @@ print>>output, "Index by Category" print>>output write_column_headers(output) - meta, info, accepted, open_, done, empty, dead = sort_peps(peps) + meta, info, accepted, open_, finished, empty, dead = sort_peps(peps) print>>output print>>output, " Meta-PEPs (PEPs about PEPs or Processs)" print>>output @@ -80,7 +80,7 @@ print>>output print>>output, " Finished PEPs (done, implemented in code repository)" print>>output - for pep in done: + for pep in finished: print>>output, pep print>>output print>>output, " Empty PEPs (or containing only abstract)"
participants (1)
-
brett.cannon