don't let fun break the index
This commit is contained in:
parent
734e2a142d
commit
14830ed7dc
|
@ -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")):
|
||||
|
|
Loading…
Reference in New Issue