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'.
|
||||||
status = metadata['Status']
|
status = metadata['Status']
|
||||||
if status not in self.status_values:
|
if status not in self.status_values:
|
||||||
raise PEPError("%r is not a valid Status value" %
|
if status == "April Fool!":
|
||||||
(status,), pep_file.name, self.number)
|
# 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.
|
# Special case for Active PEPs.
|
||||||
if (status == u"Active" and
|
if (status == u"Active" and
|
||||||
self.type_ not in ("Process", "Informational")):
|
self.type_ not in ("Process", "Informational")):
|
||||||
|
|
Loading…
Reference in New Issue