Skip to content

Commit

Permalink
Support "bpo-" in Misc/NEWS (#1)
Browse files Browse the repository at this point in the history
Change the url to 2.7

(cherry picked from commit 79ab8be)
  • Loading branch information
Mariatta committed Feb 12, 2017
1 parent 5c32988 commit 63b8f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tools/extensions/pyspecific.py
Original file line number Diff line number Diff line change
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 63b8f25

Please sign in to comment.