fixed references to PEP template; restored warning comment to HTML output
This commit is contained in:
parent
36689a02a8
commit
1f72554078
|
@ -21,8 +21,9 @@ Abstract
|
||||||
grab the plaintext source of this PEP in order to complete the
|
grab the plaintext source of this PEP in order to complete the
|
||||||
steps below. DO NOT USE THE HTML FILE AS YOUR TEMPLATE!
|
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
|
To get the source this (or any) PEP, look at the top of the HTML
|
||||||
page and click on the link titled "PEP Source".
|
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
|
If you would prefer to use lightweight markup in your PEP, please
|
||||||
see PEP 12, "Sample reStructuredText PEP Template" [2].
|
see PEP 12, "Sample reStructuredText PEP Template" [2].
|
||||||
|
|
|
@ -23,8 +23,9 @@ Note: if you are reading this PEP via the web, you should first grab
|
||||||
the text (reStructuredText) source of this PEP in order to complete
|
the text (reStructuredText) source of this PEP in order to complete
|
||||||
the steps below. **DO NOT USE THE HTML FILE AS YOUR TEMPLATE!**
|
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
|
To get the source this (or any) PEP, look at the top of the HTML page
|
||||||
page and click on the link titled "PEP Source".
|
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,
|
If you would prefer not to use markup in your PEP, please see PEP 9,
|
||||||
"Sample Plaintext PEP Template" [2]_.
|
"Sample Plaintext PEP Template" [2]_.
|
||||||
|
|
|
@ -45,14 +45,12 @@ LOCALVARS = "Local Variables:"
|
||||||
|
|
||||||
COMMENT = """<!--
|
COMMENT = """<!--
|
||||||
This HTML is auto-generated. DO NOT EDIT THIS FILE! If you are writing a new
|
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!
|
to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE!
|
||||||
-->"""
|
-->"""
|
||||||
|
|
||||||
# The generated HTML doesn't validate -- you cannot use <hr> and <h3> inside
|
# 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...
|
# <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)?)|"
|
fixpat = re.compile("((https?|ftp):[-_a-zA-Z0-9/.+~:?#$=&,]+)|(pep-\d+(.txt)?)|"
|
||||||
"(RFC[- ]?(?P<rfcnum>\d+))|"
|
"(RFC[- ]?(?P<rfcnum>\d+))|"
|
||||||
|
@ -179,6 +177,7 @@ def fixfile(inpath, input_lines, outfile):
|
||||||
if pep:
|
if pep:
|
||||||
title = "PEP " + pep + " -- " + title
|
title = "PEP " + pep + " -- " + title
|
||||||
r = random.choice(range(64))
|
r = random.choice(range(64))
|
||||||
|
print >> outfile, COMMENT
|
||||||
print >> outfile, '<div class="header">\n<table border="0" class="rfc2822">'
|
print >> outfile, '<div class="header">\n<table border="0" class="rfc2822">'
|
||||||
for k, v in header:
|
for k, v in header:
|
||||||
if k.lower() in ('author', 'discussions-to'):
|
if k.lower() in ('author', 'discussions-to'):
|
||||||
|
|
|
@ -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
|
%(body)s
|
||||||
|
|
Loading…
Reference in New Issue