Issue #19110: Surpress Last-Modified link in PEP 0 html
This commit is contained in:
parent
6f337d4c07
commit
ca2574f9d8
|
@ -228,6 +228,9 @@ def fixfile(inpath, input_lines, outfile):
|
|||
elif k.lower() in ('last-modified',):
|
||||
date = v or time.strftime('%d-%b-%Y',
|
||||
time.localtime(os.stat(inpath)[8]))
|
||||
if basename == 'pep-0000.txt':
|
||||
v = date
|
||||
else:
|
||||
try:
|
||||
url = PEPCVSURL % int(pep)
|
||||
v = '<a href="%s">%s</a> ' % (url, cgi.escape(date))
|
||||
|
|
Loading…
Reference in New Issue