[Python-checkins] r84855 - in peps/trunk/pep0: constants.py output.py

brett.cannon python-checkins at python.org
Fri Sep 17 01:52:03 CEST 2010


Author: brett.cannon
Date: Fri Sep 17 01:52:02 2010
New Revision: 84855
Log:
Set the date for when PEP 0 was last generated.
Modified:
 peps/trunk/pep0/constants.py
 peps/trunk/pep0/output.py
Modified: peps/trunk/pep0/constants.py
==============================================================================
--- peps/trunk/pep0/constants.py	(original)
+++ peps/trunk/pep0/constants.py	Fri Sep 17 01:52:02 2010
@@ -5,8 +5,7 @@
 
 header = u"""PEP: 0
 Title: Index of Python Enhancement Proposals (PEPs)
-Version: $Revision$
-Last-Modified: $Date$
+Last-Modified: %s
 Author: David Goodger <goodger at python.org>,
 Barry Warsaw <barry at python.org>
 Status: Active
Modified: peps/trunk/pep0/output.py
==============================================================================
--- peps/trunk/pep0/output.py	(original)
+++ peps/trunk/pep0/output.py	Fri Sep 17 01:52:02 2010
@@ -1,4 +1,5 @@
 """Code to handle the output of PEP 0."""
+import datetime
 import sys
 import unicodedata
 
@@ -99,7 +100,8 @@
 
 
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /