From 63b8f25db3738c98d2f16fc5ccd0184b24e45ea4 Mon Sep 17 00:00:00 2001 From: Mariatta Date: Sat, 11 Feb 2017 23:51:20 -0800 Subject: [PATCH 1/2] Support "bpo-" in Misc/NEWS (#1) Change the url to 2.7 (cherry picked from commit 79ab8be05fb4ffb5c258d2ca49be5fc2d4880431) --- Doc/tools/extensions/pyspecific.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 1b6b0e2ec0c240..83524045d99acb 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -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 @@ -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], [] From 53201d622ffe7cd54a7dcab58c36dcfc112b74da Mon Sep 17 00:00:00 2001 From: Mariatta Date: Sun, 12 Feb 2017 00:19:31 -0800 Subject: [PATCH 2/2] pyspecific.py: remove space after` bpo-` --- Doc/tools/extensions/pyspecific.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 83524045d99acb..954137e8162ef8 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -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 = 'bpo- ' + issue + text = 'bpo-'+ issue refnode = nodes.reference(text, text, refuri=ISSUE_URI % issue) return [refnode], [] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy