diff options
-rw-r--r-- | sphinx/environment.py | 4 | ||||
-rw-r--r-- | tests/test_build_html.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py index f0021fd3..c3d67d73 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -63,8 +63,8 @@ class ElementLookupError(Exception): 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 63bdeff1..c03465d5 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -138,14 +138,14 @@ HTML_XPATH = { (".//li/code/span[@class='pre']", '^a/$'), (".//li/code/em/span[@class='pre']", '^varpart$'), (".//li/code/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://www.python.org/dev/peps/pep-0008']" + (".//a[@href='https://www.python.org/dev/peps/pep-0008']" "[@class='pep reference external']/strong", 'Python Enhancement Proposal #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='http://tools.ietf.org/html/rfc1.html']" + (".//a[@href='https://tools.ietf.org/html/rfc1.html']" "[@class='rfc reference external']/strong", 'Request for Comments #1'), (".//a[@href='objects.html#envvar-HOME']" "[@class='reference internal']/code/span[@class='pre']", 'HOME'), |