Set the date for when PEP 0 was last generated.
This commit is contained in:
parent
86b7e8aba9
commit
c9e8207628
|
@ -5,8 +5,7 @@ column_format = (u' %(type)1s%(status)1s %(number)4s %(title)-' +
|
||||||
|
|
||||||
header = u"""PEP: 0
|
header = u"""PEP: 0
|
||||||
Title: Index of Python Enhancement Proposals (PEPs)
|
Title: Index of Python Enhancement Proposals (PEPs)
|
||||||
Version: $Revision$
|
Last-Modified: %s
|
||||||
Last-Modified: $Date$
|
|
||||||
Author: David Goodger <goodger@python.org>,
|
Author: David Goodger <goodger@python.org>,
|
||||||
Barry Warsaw <barry@python.org>
|
Barry Warsaw <barry@python.org>
|
||||||
Status: Active
|
Status: Active
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Code to handle the output of PEP 0."""
|
"""Code to handle the output of PEP 0."""
|
||||||
|
import datetime
|
||||||
import sys
|
import sys
|
||||||
import unicodedata
|
import unicodedata
|
||||||
|
|
||||||
|
@ -99,7 +100,8 @@ def normalized_last_first(name):
|
||||||
|
|
||||||
|
|
||||||
def write_pep0(peps, output=sys.stdout):
|
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
|
||||||
print>>output, u"Introduction"
|
print>>output, u"Introduction"
|
||||||
print>>output, constants.intro
|
print>>output, constants.intro
|
||||||
|
|
Loading…
Reference in New Issue