[issue22963] broken link in PEP 102

Ezio Melotti report at bugs.python.org
Wed Feb 4 06:53:37 CET 2015


Ezio Melotti added the comment:

The link in PEP 102 is still wrong, even though the pydotorg issue has been closed.
The problem seems to affect txt PEPs (not rst ones), and it can be fixed by simply doing:

diff --git a/pep2html.py b/pep2html.py
--- a/pep2html.py
+++ b/pep2html.py
@@ -48,11 +48,11 @@
             'docutils': '0.2.7'}
 PROGRAM = sys.argv[0]
 RFCURL = 'http://www.faqs.org/rfcs/rfc%d.html'
-PEPURL = 'pep-%04d.html'
+PEPURL = '../pep-%04d.html'
 PEPCVSURL = ('https://hg.python.org/peps/file/tip/pep-%04d.txt')
 PEPDIRRUL = 'http://www.python.org/peps/'

However this breaks the URLs while building/looking at the PEPs locally.

(Note: I don't have a github account so I can't reopen the linked issue -- feel free to close this again once the issue has been reported to pydotorg.)

----------
nosy: +benjamin.peterson, ncoghlan
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22963>
_______________________________________


More information about the Python-bugs-list mailing list