don't let fun break the index

This commit is contained in:
Benjamin Peterson 2009-04-06 23:52:08 +00:00
parent 734e2a142d
commit 14830ed7dc
1 changed files with 6 additions and 2 deletions

View File

@ -207,8 +207,12 @@ class PEP(object):
# 'Status'.
status = metadata['Status']
if status not in self.status_values:
raise PEPError("%r is not a valid Status value" %
(status,), pep_file.name, self.number)
if status == "April Fool!":
# See PEP 401 :)
status = "Rejected"
else:
raise PEPError("%r is not a valid Status value" %
(status,), pep_file.name, self.number)
# Special case for Active PEPs.
if (status == u"Active" and
self.type_ not in ("Process", "Informational")):