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,6 +207,10 @@ 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:
if status == "April Fool!":
# See PEP 401 :)
status = "Rejected"
else:
raise PEPError("%r is not a valid Status value" % raise PEPError("%r is not a valid Status value" %
(status,), pep_file.name, self.number) (status,), pep_file.name, self.number)
# Special case for Active PEPs. # Special case for Active PEPs.