All Draft PEPs should be in the 'Open PEPs' section, even Process ones
This commit is contained in:
parent
e0600917f5
commit
ae714487e9
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue