Skip to content

Commit

Permalink
don't let fun break the index
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Apr 6, 2009
1 parent 734e2a1 commit 14830ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pep0/pep.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,12 @@ def __init__(self, pep_file):
# '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")):
Expand Down

0 comments on commit 14830ed

Please sign in to comment.