[Python-checkins] r43251 - peps/trunk/pep-0009.txt peps/trunk/pep-0012.txt peps/trunk/pep2pyramid.py peps/trunk/pyramid-pep-template
david.goodger
python-checkins at python.org
Thu Mar 23 15:28:56 CET 2006
Author: david.goodger
Date: Thu Mar 23 15:28:55 2006
New Revision: 43251
Modified:
peps/trunk/pep-0009.txt
peps/trunk/pep-0012.txt
peps/trunk/pep2pyramid.py
peps/trunk/pyramid-pep-template
Log:
fixed references to PEP template; restored warning comment to HTML output
Modified: peps/trunk/pep-0009.txt
==============================================================================
--- peps/trunk/pep-0009.txt (original)
+++ peps/trunk/pep-0009.txt Thu Mar 23 15:28:55 2006
@@ -21,8 +21,9 @@
grab the plaintext source of this PEP in order to complete the
steps below. DO NOT USE THE HTML FILE AS YOUR TEMPLATE!
- To get the source this (or any) PEP, look at the top of the html
- page and click on the link titled "PEP Source".
+ To get the source this (or any) PEP, look at the top of the HTML
+ page and click on the date & time on the "Last-Modified" line. It
+ is a link to the source text in the Python repository.
If you would prefer to use lightweight markup in your PEP, please
see PEP 12, "Sample reStructuredText PEP Template" [2].
Modified: peps/trunk/pep-0012.txt
==============================================================================
--- peps/trunk/pep-0012.txt (original)
+++ peps/trunk/pep-0012.txt Thu Mar 23 15:28:55 2006
@@ -23,8 +23,9 @@
the text (reStructuredText) source of this PEP in order to complete
the steps below. **DO NOT USE THE HTML FILE AS YOUR TEMPLATE!**
-To get the source of this (or any) PEP, look at the top of the HTML
-page and click on the link titled "PEP Source".
+To get the source this (or any) PEP, look at the top of the HTML page
+and click on the date & time on the "Last-Modified" line. It is a
+link to the source text in the Python repository.
If you would prefer not to use markup in your PEP, please see PEP 9,
"Sample Plaintext PEP Template" [2]_.
Modified: peps/trunk/pep2pyramid.py
==============================================================================
--- peps/trunk/pep2pyramid.py (original)
+++ peps/trunk/pep2pyramid.py Thu Mar 23 15:28:55 2006
@@ -45,14 +45,12 @@
COMMENT = """<!--
This HTML is auto-generated. DO NOT EDIT THIS FILE! If you are writing a new
-PEP, see http://www.python.org/peps/pep-0001.html for instructions and links
+PEP, see http://www.python.org/dev/peps/pep-0001 for instructions and links
to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE!
-->"""
# The generated HTML doesn't validate -- you cannot use <hr> and <h3> inside
# <pre> tags. But if I change that, the result doesn't look very nice...
-DTD = ('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"\n'
- ' "http://www.w3.org/TR/REC-html40/loose.dtd">')
fixpat = re.compile("((https?|ftp):[-_a-zA-Z0-9/.+~:?#$=&,]+)|(pep-\d+(.txt)?)|"
"(RFC[- ]?(?P<rfcnum>\d+))|"
@@ -179,6 +177,7 @@
if pep:
title = "PEP " + pep + " -- " + title
r = random.choice(range(64))
+ print >> outfile, COMMENT
print >> outfile, '<div class="header">\n<table border="0" class="rfc2822">'
for k, v in header:
if k.lower() in ('author', 'discussions-to'):
Modified: peps/trunk/pyramid-pep-template
==============================================================================
--- peps/trunk/pyramid-pep-template (original)
+++ peps/trunk/pyramid-pep-template Thu Mar 23 15:28:55 2006
@@ -1 +1,6 @@
+<!--
+This HTML is auto-generated. DO NOT EDIT THIS FILE! If you are writing a new
+PEP, see http://www.python.org/dev/peps/pep-0001 for instructions and links
+to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE!
+-->
%(body)s
More information about the Python-checkins
mailing list