All Draft PEPs should be in the 'Open PEPs' section, even Process ones

This commit is contained in:
Nick Coghlan 2012-02-10 23:17:22 +10:00
parent e0600917f5
commit ae714487e9
1 changed files with 4 additions and 4 deletions

View File

@ -36,15 +36,15 @@ def sort_peps(peps):
for pep in peps: for pep in peps:
# Order of 'if' statement important. Key Status values take precedence # Order of 'if' statement important. Key Status values take precedence
# over Type value, and vice-versa. # over Type value, and vice-versa.
if pep.type_ == 'Process': if pep.status == 'Draft':
if pep.status in ("Active", "Draft"): open_.append(pep)
elif pep.type_ == 'Process':
if pep.status == "Active":
meta.append(pep) meta.append(pep)
elif pep.status in ("Withdrawn", "Rejected"): elif pep.status in ("Withdrawn", "Rejected"):
dead.append(pep) dead.append(pep)
else: else:
historical.append(pep) historical.append(pep)
elif pep.status == 'Draft':
open_.append(pep)
elif pep.status == 'Deferred': elif pep.status == 'Deferred':
deferred.append(pep) deferred.append(pep)
elif pep.status in ('Rejected', 'Withdrawn', elif pep.status in ('Rejected', 'Withdrawn',