[Python-checkins] peps: Give Deferred PEPs their own section in PEP 0
nick.coghlan
python-checkins at python.org
Fri Apr 15 19:39:18 CEST 2011
http://hg.python.org/peps/rev/e87b26c21dcb
changeset: 3868:e87b26c21dcb
user: Nick Coghlan <ncoghlan at gmail.com>
date: Sat Apr 16 03:39:10 2011 +1000
summary:
Give Deferred PEPs their own section in PEP 0
files:
pep0/output.py | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/pep0/output.py b/pep0/output.py
--- a/pep0/output.py
+++ b/pep0/output.py
@@ -31,6 +31,7 @@
open_ = []
finished = []
historical = []
+ deferred = []
dead = []
for pep in peps:
# Order of 'if' statement important. Key Status values take precedence
@@ -44,8 +45,10 @@
historical.append(pep)
elif pep.status == 'Draft':
open_.append(pep)
- elif pep.status in ('Rejected', 'Withdrawn', 'Deferred',
- 'Incomplete', 'Superseded'):
+ elif pep.status == 'Deferred':
+ deferred.append(pep)
+ elif pep.status in ('Rejected', 'Withdrawn',
+ 'Incomplete', 'Superseded'):
dead.append(pep)
elif pep.type_ == 'Informational':
# Hack until the conflict between the use of "Final"
@@ -64,7 +67,7 @@
raise PEPError("unsorted (%s/%s)" %
(pep.type_, pep.status),
pep.filename, pep.number)
- return meta, info, accepted, open_, finished, historical, dead
+ return meta, info, accepted, open_, finished, historical, deferred, dead
def verify_email_addresses(peps):
@@ -122,7 +125,8 @@
print>>output, u"Index by Category"
print>>output
write_column_headers(output)
- meta, info, accepted, open_, finished, historical, dead = sort_peps(peps)
+ (meta, info, accepted, open_, finished,
+ historical, deferred, dead) = sort_peps(peps)
print>>output
print>>output, u" Meta-PEPs (PEPs about PEPs or Processes)"
print>>output
@@ -154,7 +158,12 @@
for pep in historical:
print>>output, unicode(pep)
print>>output
- print>>output, u" Deferred, Abandoned, Withdrawn, and Rejected PEPs"
+ print>>output, u" Deferred PEPs"
+ print>>output
+ for pep in deferred:
+ print>>output, unicode(pep)
+ print>>output
+ print>>output, u" Abandoned, Withdrawn, and Rejected PEPs"
print>>output
for pep in dead:
print>>output, unicode(pep)
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list