Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e0b44e

Browse files
committed
Closes python#25910: fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
1 parent bb65063 commit 6e0b44e

44 files changed

Lines changed: 172 additions & 177 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Doc/distributing/index.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Key terms
3535
repository of open source licensed packages made available for use by
3636
other Python users
3737
* the `Python Packaging Authority
38-
<https://packaging.python.org/en/latest/future.html>`__ are the group of
38+
<https://www.pypa.io/>`__ are the group of
3939
developers and documentation authors responsible for the maintenance and
4040
evolution of the standard packaging tools and the associated metadata and
4141
file format standards. They maintain a variety of tools, documentation
@@ -62,7 +62,7 @@ Key terms
6262
locally.
6363

6464
.. _setuptools: https://setuptools.pypa.io/en/latest/setuptools.html
65-
.. _wheel: http://wheel.readthedocs.org
65+
.. _wheel: https://wheel.readthedocs.org
6666

6767
Open source licensing and collaboration
6868
=======================================
@@ -111,7 +111,7 @@ by invoking the ``pip`` module at the command line::
111111
The Python Packaging User Guide includes more details on the `currently
112112
recommended tools`_.
113113

114-
.. _currently recommended tools: https://packaging.python.org/en/latest/current.html#packaging-tool-recommendations
114+
.. _currently recommended tools: https://packaging.python.org/en/latest/current/#packaging-tool-recommendations
115115

116116
Reading the guide
117117
=================
@@ -124,11 +124,11 @@ involved in creating a project:
124124
* `Uploading the project to the Python Packaging Index`_
125125

126126
.. _Project structure: \
127-
https://packaging.python.org/en/latest/distributing.html#creating-your-own-project
127+
https://packaging.python.org/en/latest/distributing/
128128
.. _Building and packaging the project: \
129-
https://packaging.python.org/en/latest/distributing.html#packaging-your-project
129+
https://packaging.python.org/en/latest/distributing/#packaging-your-project
130130
.. _Uploading the project to the Python Packaging Index: \
131-
https://packaging.python.org/en/latest/distributing.html#uploading-your-project-to-pypi
131+
https://packaging.python.org/en/latest/distributing/#uploading-your-project-to-pypi
132132

133133

134134
How do I...?
@@ -160,11 +160,11 @@ Python Packaging User Guide for more information and recommendations.
160160
.. seealso::
161161

162162
`Python Packaging User Guide: Binary Extensions
163-
<https://packaging.python.org/en/latest/extensions.html>`__
163+
<https://packaging.python.org/en/latest/extensions>`__
164164

165165
.. other topics:
166166
167167
Once the Development & Deployment part of PPUG is fleshed out, some of
168168
those sections should be linked from new questions here (most notably,
169169
we should have a question about avoiding depending on PyPI that links to
170-
https://packaging.python.org/en/latest/deployment.html#pypi-mirrors-and-caches)
170+
https://packaging.python.org/en/latest/mirrors/)

Doc/distutils/apiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ Subclasses of :class:`Command` must define the following methods.
18161816

18171817
Builds a `Windows Installer`_ (.msi) binary package.
18181818

1819-
.. _Windows Installer: http://msdn.microsoft.com/en-us/library/cc185688(VS.85).aspx
1819+
.. _Windows Installer: https://msdn.microsoft.com/en-us/library/cc185688(VS.85).aspx
18201820

18211821
In most cases, the ``bdist_msi`` installer is a better choice than the
18221822
``bdist_wininst`` installer, because it provides better support for

Doc/extending/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ your system setup; details are given in later chapters.
2727
avoid writing C extensions and preserve portability to other implementations.
2828
For example, if your use case is calling C library functions or system calls,
2929
you should consider using the :mod:`ctypes` module or the `cffi
30-
<http://cffi.readthedocs.org>`_ library rather than writing custom C code.
30+
<https://cffi.readthedocs.org>`_ library rather than writing custom C code.
3131
These modules let you write Python code to interface with C code and are more
3232
portable between implementations of Python than writing and compiling a C
3333
extension module.

Doc/faq/extending.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ Python's C API.
5353
If you need to interface to some C or C++ library for which no Python extension
5454
currently exists, you can try wrapping the library's data types and functions
5555
with a tool such as `SWIG <http://www.swig.org>`_. `SIP
56-
<http://www.riverbankcomputing.co.uk/software/sip/intro>`__, `CXX
56+
<https://riverbankcomputing.com/software/sip/intro>`__, `CXX
5757
<http://cxx.sourceforge.net/>`_ `Boost
5858
<http://www.boost.org/libs/python/doc/index.html>`_, or `Weave
59-
<http://docs.scipy.org/doc/scipy-dev/reference/tutorial/weave.html>`_ are also
59+
<https://scipy.github.io/devdocs/tutorial/weave.html>`_ are also
6060
alternatives for wrapping C++ libraries.
6161

6262

Doc/faq/general.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ How do I obtain a copy of the Python source?
159159
--------------------------------------------
160160

161161
The latest Python source distribution is always available from python.org, at
162-
https://www.python.org/download/. The latest development sources can be obtained
162+
https://www.python.org/downloads/. The latest development sources can be obtained
163163
via anonymous Mercurial access at https://hg.python.org/cpython.
164164

165165
The source distribution is a gzipped tar file containing the complete C source,
@@ -218,7 +218,7 @@ can be found at https://www.python.org/community/lists/.
218218
How do I get a beta test version of Python?
219219
-------------------------------------------
220220

221-
Alpha and beta releases are available from https://www.python.org/download/. All
221+
Alpha and beta releases are available from https://www.python.org/downloads/. All
222222
releases are announced on the comp.lang.python and comp.lang.python.announce
223223
newsgroups and on the Python home page at https://www.python.org/; an RSS feed of
224224
news is available.
@@ -273,7 +273,7 @@ The Python project's infrastructure is located all over the world.
273273
`www.python.org <https://www.python.org>`_ is graciously hosted by `Rackspace
274274
<http://www.rackspace.com>`_, with CDN caching provided by `Fastly
275275
<https://www.fastly.com>`_. `Upfront Systems
276-
<http://www.upfrontsystems.co.za>`_ hosts `bugs.python.org
276+
<http://www.upfrontsystems.co.za/>`_ hosts `bugs.python.org
277277
<https://bugs.python.org>`_. Many other Python services like `the Wiki
278278
<https://wiki.python.org>`_ are hosted by `Oregon State
279279
University Open Source Lab <https://osuosl.org>`_.
@@ -284,7 +284,7 @@ Why is it called Python?
284284

285285
When he began implementing Python, Guido van Rossum was also reading the
286286
published scripts from `"Monty Python's Flying Circus"
287-
<http://en.wikipedia.org/wiki/Monty_Python>`__, a BBC comedy series from the 1970s. Van Rossum
287+
<https://en.wikipedia.org/wiki/Monty_Python>`__, a BBC comedy series from the 1970s. Van Rossum
288288
thought he needed a name that was short, unique, and slightly mysterious, so he
289289
decided to call the language Python.
290290

@@ -313,7 +313,7 @@ guaranteed that interfaces will remain the same throughout a series of bugfix
313313
releases.
314314

315315
The latest stable releases can always be found on the `Python download page
316-
<https://www.python.org/download/>`_. There are two recommended production-ready
316+
<https://www.python.org/downloads/>`_. There are two recommended production-ready
317317
versions at this point in time, because at the moment there are two branches of
318318
stable releases: 2.x and 3.x. Python 3.x may be less useful than 2.x, since
319319
currently there is more third party software available for Python 2 than for
@@ -345,7 +345,7 @@ different companies and organizations.
345345
High-profile Python projects include `the Mailman mailing list manager
346346
<http://www.list.org>`_ and `the Zope application server
347347
<http://www.zope.org>`_. Several Linux distributions, most notably `Red Hat
348-
<http://www.redhat.com>`_, have written part or all of their installer and
348+
<https://www.redhat.com>`_, have written part or all of their installer and
349349
system administration software in Python. Companies that use Python internally
350350
include Google, Yahoo, and Lucasfilm Ltd.
351351

Doc/faq/gui.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ Qt
4848
---
4949

5050
There are bindings available for the Qt toolkit (using either `PyQt
51-
<http://www.riverbankcomputing.co.uk/software/pyqt/intro>`_ or `PySide
52-
<http://www.pyside.org/>`_) and for KDE (`PyKDE <https://techbase.kde.org/Development/Languages/Python>`__).
51+
<https://riverbankcomputing.com/software/pyqt/intro>`_ or `PySide
52+
<https://wiki.qt.io/PySide>`_) and for KDE (`PyKDE <https://techbase.kde.org/Development/Languages/Python>`__).
5353
PyQt is currently more mature than PySide, but you must buy a PyQt license from
54-
`Riverbank Computing <http://www.riverbankcomputing.co.uk/software/pyqt/license>`_
54+
`Riverbank Computing <https://www.riverbankcomputing.com/commercial/license-faq>`_
5555
if you want to write proprietary applications. PySide is free for all applications.
5656

5757
Qt 4.5 upwards is licensed under the LGPL license; also, commercial licenses
58-
are available from `The Qt Company <http://www.qt.io/licensing/>`_.
58+
are available from `The Qt Company <https://www.qt.io/licensing/>`_.
5959

6060
Gtk+
6161
----

Doc/faq/library.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ For Win32, POSIX (Linux, BSD, etc.), Jython:
597597

598598
For Unix, see a Usenet post by Mitch Chapman:
599599

600-
http://groups.google.com/[email protected]
600+
https://groups.google.com/[email protected]
601601

602602

603603
Why doesn't closing sys.stdout (stdin, stderr) really close it?

Doc/faq/programming.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ PyChecker is a static analysis tool that finds bugs in Python source code and
6363
warns about code complexity and style. You can get PyChecker from
6464
http://pychecker.sourceforge.net/.
6565

66-
`Pylint <http://www.logilab.org/projects/pylint>`_ is another tool that checks
66+
`Pylint <http://www.pylint.org/>`_ is another tool that checks
6767
if a module satisfies a coding standard, and also makes it possible to write
6868
plug-ins to add a custom feature. In addition to the bug checking that
6969
PyChecker performs, Pylint offers some additional features such as checking line

Doc/howto/functional.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ substring.
331331

332332
List comprehensions and generator expressions (short form: "listcomps" and
333333
"genexps") are a concise notation for such operations, borrowed from the
334-
functional programming language Haskell (http://www.haskell.org/). You can strip
334+
functional programming language Haskell (https://www.haskell.org/). You can strip
335335
all the whitespace from a stream of strings with the following code::
336336

337337
line_list = [' line 1\n', 'line 2 \n', ...]
@@ -1144,7 +1144,7 @@ General
11441144

11451145
**Structure and Interpretation of Computer Programs**, by Harold Abelson and
11461146
Gerald Jay Sussman with Julie Sussman. Full text at
1147-
http://mitpress.mit.edu/sicp/. In this classic textbook of computer science,
1147+
https://mitpress.mit.edu/sicp/. In this classic textbook of computer science,
11481148
chapters 2 and 3 discuss the use of sequences and streams to organize the data
11491149
flow inside a program. The book uses Scheme for its examples, but many of the
11501150
design approaches described in these chapters are applicable to functional-style
@@ -1153,12 +1153,12 @@ Python code.
11531153
http://www.defmacro.org/ramblings/fp.html: A general introduction to functional
11541154
programming that uses Java examples and has a lengthy historical introduction.
11551155

1156-
http://en.wikipedia.org/wiki/Functional_programming: General Wikipedia entry
1156+
https://en.wikipedia.org/wiki/Functional_programming: General Wikipedia entry
11571157
describing functional programming.
11581158

1159-
http://en.wikipedia.org/wiki/Coroutine: Entry for coroutines.
1159+
https://en.wikipedia.org/wiki/Coroutine: Entry for coroutines.
11601160

1161-
http://en.wikipedia.org/wiki/Currying: Entry for the concept of currying.
1161+
https://en.wikipedia.org/wiki/Currying: Entry for the concept of currying.
11621162

11631163
Python-specific
11641164
---------------

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ An example dictionary-based configuration
705705
-----------------------------------------
706706

707707
Below is an example of a logging configuration dictionary - it's taken from
708-
the `documentation on the Django project <https://docs.djangoproject.com/en/1.3/topics/logging/#configuring-logging>`_.
708+
the `documentation on the Django project <https://docs.djangoproject.com/en/1.4/topics/logging/#configuring-logging>`_.
709709
This dictionary is passed to :func:`~config.dictConfig` to put the configuration into effect::
710710

711711
LOGGING = {

0 commit comments

Comments
 (0)