From 571cae87a5a07cc2f2d920e6b6eb16d8cfbb56c6 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 17 Nov 2014 19:33:59 +0100 Subject: [PATCH] Closes #1372: use https URL for PEPs and RFCs --- sphinx/environment.py | 4 ++-- tests/test_build_html.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sphinx/environment.py b/sphinx/environment.py index 463204bc7..6a05f9b10 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -59,8 +59,8 @@ class ElementLookupError(Exception): pass default_settings = { 'embed_stylesheet': False, 'cloak_email_addresses': True, - 'pep_base_url': 'http://www.python.org/dev/peps/', - 'rfc_base_url': 'http://tools.ietf.org/html/', + 'pep_base_url': 'https://www.python.org/dev/peps/', + 'rfc_base_url': 'https://tools.ietf.org/html/', 'input_encoding': 'utf-8-sig', 'doctitle_xform': False, 'sectsubtitle_xform': False, diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 0c2efe42b..c361f7786 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -130,9 +130,9 @@ HTML_XPATH = { (".//li/tt/span[@class='pre']", '^a/$'), (".//li/tt/em/span[@class='pre']", '^varpart$'), (".//li/tt/em/span[@class='pre']", '^i$'), - (".//a[@href='http://www.python.org/dev/peps/pep-0008']" + (".//a[@href='https://www.python.org/dev/peps/pep-0008']" "[@class='pep reference external']/strong", 'PEP 8'), - (".//a[@href='http://tools.ietf.org/html/rfc1.html']" + (".//a[@href='https://tools.ietf.org/html/rfc1.html']" "[@class='rfc reference external']/strong", 'RFC 1'), (".//a[@href='objects.html#envvar-HOME']" "[@class='reference internal']/tt/span[@class='pre']", 'HOME'),