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:
# Order of 'if' statement important. Key Status values take precedence
# over Type value, and vice-versa.
if pep.type_ == 'Process':
if pep.status in ("Active", "Draft"):
if pep.status == 'Draft':
open_.append(pep)
elif pep.type_ == 'Process':
if pep.status == "Active":
meta.append(pep)
elif pep.status in ("Withdrawn", "Rejected"):
dead.append(pep)
else:
historical.append(pep)
elif pep.status == 'Draft':
open_.append(pep)
elif pep.status == 'Deferred':
deferred.append(pep)
elif pep.status in ('Rejected', 'Withdrawn',