Use https:// URLs when referring to python.org hosts.
diff --git a/Doc/library/bz2.rst b/Doc/library/bz2.rst
index 6793c44..71957ec 100644
--- a/Doc/library/bz2.rst
+++ b/Doc/library/bz2.rst
@@ -74,7 +74,7 @@
       input file, only the first stream will be accessible. If you require
       support for multi-stream files, consider using the third-party
       :mod:`bz2file` module (available from
-      `PyPI <http://pypi.python.org/pypi/bz2file>`_). This module provides a
+      `PyPI <https://pypi.python.org/pypi/bz2file>`_). This module provides a
       backport of Python 3.3's :class:`BZ2File` class, which does support
       multi-stream files.
 
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index db95269..15a4fe4 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1563,7 +1563,7 @@
 
 .. seealso::
 
-   `pytz <http://pypi.python.org/pypi/pytz/>`_
+   `pytz <https://pypi.python.org/pypi/pytz/>`_
       The standard library has no :class:`tzinfo` instances, but
       there exists a third-party library which brings the *IANA timezone
       database* (also known as the Olson database) to Python: *pytz*.
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index d8a3dcf..c9d34dc 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1324,7 +1324,7 @@
    example, sort by department, then by salary grade).
 
    For sorting examples and a brief sorting tutorial, see `Sorting HowTo
-   <http://wiki.python.org/moin/HowTo/Sorting/>`_\.
+   <https://wiki.python.org/moin/HowTo/Sorting/>`_\.
 
    .. versionadded:: 2.4
 
diff --git a/Doc/library/index.rst b/Doc/library/index.rst
index 71ba916..5d335e4 100644
--- a/Doc/library/index.rst
+++ b/Doc/library/index.rst
@@ -30,7 +30,7 @@
 In addition to the standard library, there is a growing collection of
 several thousand components (from individual programs and modules to
 packages and entire application development frameworks), available from
-the `Python Package Index <http://pypi.python.org/pypi>`_.
+the `Python Package Index <https://pypi.python.org/pypi>`_.
 
 
 .. toctree::
diff --git a/Doc/library/othergui.rst b/Doc/library/othergui.rst
index 1ee5c5b..ba26e74 100644
--- a/Doc/library/othergui.rst
+++ b/Doc/library/othergui.rst
@@ -45,7 +45,7 @@
 PyGTK, PyQt, and wxPython, all have a modern look and feel and more
 widgets than Tkinter. In addition, there are many other GUI toolkits for
 Python, both cross-platform, and platform-specific. See the `GUI Programming
-<http://wiki.python.org/moin/GuiProgramming>`_ page in the Python Wiki for a
+<https://wiki.python.org/moin/GuiProgramming>`_ page in the Python Wiki for a
 much more complete list, and also for links to documents where the
 different GUI toolkits are compared.
 
diff --git a/Doc/library/popen2.rst b/Doc/library/popen2.rst
index 628ec6e..0960255 100644
--- a/Doc/library/popen2.rst
+++ b/Doc/library/popen2.rst
@@ -153,7 +153,7 @@
 
 .. Example explanation and suggested work-arounds substantially stolen
    from Martin von Löwis:
-   http://mail.python.org/pipermail/python-dev/2000-September/009460.html
+   https://mail.python.org/pipermail/python-dev/2000-September/009460.html
 
 There are several ways to deal with this situation.
 
diff --git a/Doc/library/pydoc.rst b/Doc/library/pydoc.rst
index 8343452..df37b71 100644
--- a/Doc/library/pydoc.rst
+++ b/Doc/library/pydoc.rst
@@ -69,7 +69,7 @@
 Python interpreter and typed ``import spam``.
 
 Module docs for core modules are assumed to reside in
-http://docs.python.org/library/.  This can be overridden by setting the
+https://docs.python.org/library/.  This can be overridden by setting the
 :envvar:`PYTHONDOCS` environment variable to a different URL or to a local
 directory containing the Library Reference Manual pages.
 
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 48d2b5b..e1900c7 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -1014,7 +1014,7 @@
    .. versionadded:: 2.5
 
    .. note::
-      Python is now `developed <http://docs.python.org/devguide/>`_ using
+      Python is now `developed <https://docs.python.org/devguide/>`_ using
       Mercurial.  In recent Python 2.7 bugfix releases, :data:`subversion`
       therefore contains placeholder information.  It is removed in Python
       3.3.
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index d82c407..556829a 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -78,7 +78,7 @@
    Module :mod:`doctest`
       Another test-support module with a very different flavor.
 
-   `unittest2: A backport of new unittest features for Python 2.4-2.6 <http://pypi.python.org/pypi/unittest2>`_
+   `unittest2: A backport of new unittest features for Python 2.4-2.6 <https://pypi.python.org/pypi/unittest2>`_
       Many new features were added to unittest in Python 2.7, including test
       discovery. unittest2 allows you to use these features with earlier
       versions of Python.
@@ -91,7 +91,7 @@
       Third-party unittest frameworks with a lighter-weight syntax for writing
       tests.  For example, ``assert func(10) == 42``.
 
-   `The Python Testing Tools Taxonomy <http://wiki.python.org/moin/PythonTestingToolsTaxonomy>`_
+   `The Python Testing Tools Taxonomy <https://wiki.python.org/moin/PythonTestingToolsTaxonomy>`_
       An extensive list of Python testing tools including functional testing
       frameworks and mock object libraries.
 
diff --git a/Doc/library/xml.dom.rst b/Doc/library/xml.dom.rst
index 541d649..b496aa1 100644
--- a/Doc/library/xml.dom.rst
+++ b/Doc/library/xml.dom.rst
@@ -36,7 +36,7 @@
 .. XXX PyXML is dead...
 .. The mapping of the Level 3 specification, currently
    only available in draft form, is being developed by the `Python XML Special
-   Interest Group <http://www.python.org/sigs/xml-sig/>`_ as part of the `PyXML
+   Interest Group <https://www.python.org/sigs/xml-sig/>`_ as part of the `PyXML
    package <http://pyxml.sourceforge.net/>`_.  Refer to the documentation bundled
    with that package for information on the current state of DOM Level 3 support.
 
diff --git a/Doc/library/xmllib.rst b/Doc/library/xmllib.rst
index 43cbce9..1e4c776 100644
--- a/Doc/library/xmllib.rst
+++ b/Doc/library/xmllib.rst
@@ -255,11 +255,11 @@
       material on XML, including translations of the specification, are available at
       http://www.w3.org/XML/.
 
-   `Python and XML Processing <http://www.python.org/topics/xml/>`_
+   `Python and XML Processing <https://www.python.org/topics/xml/>`_
       The Python XML Topic Guide provides a great deal of information on using XML
       from Python and links to other sources of information on XML.
 
-   `SIG for XML Processing in Python <http://www.python.org/sigs/xml-sig/>`_
+   `SIG for XML Processing in Python <https://www.python.org/sigs/xml-sig/>`_
       The Python XML Special Interest Group is developing substantial support for
       processing XML from Python.