[Python-checkins] r71340 - peps/trunk/pep0/pep.py
benjamin.peterson
python-checkins at python.org
Tue Apr 7 01:52:08 CEST 2009
Author: benjamin.peterson
Date: Tue Apr 7 01:52:08 2009
New Revision: 71340
Log:
don't let fun break the index
Modified:
peps/trunk/pep0/pep.py
Modified: peps/trunk/pep0/pep.py
==============================================================================
--- peps/trunk/pep0/pep.py (original)
+++ peps/trunk/pep0/pep.py Tue Apr 7 01:52:08 2009
@@ -207,8 +207,12 @@
# '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")):
More information about the Python-checkins
mailing list