Skip to content

Commit

Permalink
[backport to 2.7] Change documentation's Show Source link to GitHub (
Browse files Browse the repository at this point in the history
…#44)

* Support "bpo-" in Misc/NEWS (#1)
Change the url to 2.7

(cherry picked from commit 79ab8be)

* pyspecific.py: remove space after` bpo-`
  • Loading branch information
Mariatta committed Feb 12, 2017
1 parent 5c32988 commit 52b8c55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tools/extensions/pyspecific.py
Expand Up @@ -10,7 +10,7 @@
"""

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

from docutils import nodes, utils

Expand Down Expand Up @@ -58,7 +58,7 @@ def new_depart_literal_block(self, node):

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

Expand Down

0 comments on commit 52b8c55

Please sign in to comment.