Make Version/Last-Modified optional/deprecated.

These fields were maintained by the version control system, and this
no longer happens with git.  They are already no longer displayed in
the published versions of the pages.
This commit is contained in:
R. David Murray 2017-09-05 14:41:25 -04:00
parent 0a1b01ea4e
commit 62055aad79
2 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,5 @@
PEP: 1
Title: PEP Purpose and Guidelines
Version: $Revision$
Last-Modified: $Date$
Author: Barry Warsaw, Jeremy Hylton, David Goodger, Nick Coghlan
Status: Active
Type: Process
@ -370,8 +368,6 @@ optional and are described below. All other headers are required. ::
PEP: <pep number>
Title: <pep title>
Version: <version string>
Last-Modified: <date string>
Author: <list of authors' real names and optionally, email addrs>
* BDFL-Delegate: <PEP czar's real name>
* Discussions-To: <email address>

View File

@ -156,8 +156,8 @@ class PEP(object):
# The various RFC 822 headers that are supported.
# The second item in the nested tuples represents if the header is
# required or not.
headers = (('PEP', True), ('Title', True), ('Version', True),
('Last-Modified', True), ('Author', True),
headers = (('PEP', True), ('Title', True), ('Version', False),
('Last-Modified', False), ('Author', True),
('BDFL-Delegate', False),
('Discussions-To', False), ('Status', True), ('Type', True),
('Content-Type', False), ('Requires', False),