Skip to content

Commit 52b8c55

Browse files
authored
[backport to 2.7] Change documentation's Show Source link to GitHub (#44)
* Support "bpo-" in Misc/NEWS (#1) Change the url to 2.7 (cherry picked from commit 79ab8be) * pyspecific.py: remove space after` bpo-`
1 parent 5c32988 commit 52b8c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Doc/tools/extensions/pyspecific.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
ISSUE_URI = 'https://bugs.python.org/issue%s'
13-
SOURCE_URI = 'https://hg.python.org/cpython/file/2.7/%s'
13+
SOURCE_URI = 'https://github.com/python/cpython/tree/2.7/%s'
1414

1515
from docutils import nodes, utils
1616

@@ -58,7 +58,7 @@ def new_depart_literal_block(self, node):
5858

5959
def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
6060
issue = utils.unescape(text)
61-
text = 'issue ' + issue
61+
text = 'bpo-'+ issue
6262
refnode = nodes.reference(text, text, refuri=ISSUE_URI % issue)
6363
return [refnode], []
6464

0 commit comments

Comments
 (0)