Set the date for when PEP 0 was last generated.

This commit is contained in:
Brett Cannon 2010-09-16 23:52:02 +00:00
parent 86b7e8aba9
commit c9e8207628
2 changed files with 4 additions and 3 deletions

View File

@ -5,8 +5,7 @@ column_format = (u' %(type)1s%(status)1s %(number)4s %(title)-' +
header = u"""PEP: 0
Title: Index of Python Enhancement Proposals (PEPs)
Version: $Revision$
Last-Modified: $Date$
Last-Modified: %s
Author: David Goodger <goodger@python.org>,
Barry Warsaw <barry@python.org>
Status: Active

View File

@ -1,4 +1,5 @@
"""Code to handle the output of PEP 0."""
import datetime
import sys
import unicodedata
@ -99,7 +100,8 @@ def normalized_last_first(name):
def write_pep0(peps, output=sys.stdout):
print>>output, constants.header
today = datetime.date.today().strftime("%Y-%m-%d")
print>>output, constants.header % today
print>>output
print>>output, u"Introduction"
print>>output, constants.intro