Commits

Nick Coghlan  committed e87b26c

Give Deferred PEPs their own section in PEP 0

  • Participants
  • Parent commits ed1008f

Comments (0)

Files changed (1)

File pep0/output.py

     open_ = []
     finished = []
     historical = []
+    deferred = []
     dead = []
     for pep in peps:
         # Order of 'if' statement important.  Key Status values take precedence
                 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"
             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):
     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
     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)