Skip to content

Commit da7268c

Browse files
authored
Convert insecure links to use HTTPS (#14974)
Also updated a few links that were pointing to redirects. Skipped following files: * XML/SVG files linking to XML namespaces * `mypyc/external` - looks like vendored code * `LICENSE` - because it's verbatim legal text, also pythonlabs.com isn't available on HTTPS
1 parent a9a047e commit da7268c

16 files changed

+22
-22
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Web site and documentation
142142

143143
Additional information is available at the web site:
144144

145-
http://www.mypy-lang.org/
145+
https://www.mypy-lang.org/
146146

147147
Jump straight to the documentation:
148148

conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def pytest_configure(config):
1212

1313

1414
# This function name is special to pytest. See
15-
# http://doc.pytest.org/en/latest/writing_plugins.html#initialization-command-line-and-configuration-hooks
15+
# https://doc.pytest.org/en/latest/how-to/writing_plugins.html#initialization-command-line-and-configuration-hooks
1616
def pytest_addoption(parser) -> None:
1717
parser.addoption(
1818
"--bench", action="store_true", default=False, help="Enable the benchmark test runs"

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BUILDDIR = build
99

1010
# User-friendly check for sphinx-build
1111
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12-
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
12+
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from https://www.sphinx-doc.org/)
1313
endif
1414

1515
# Internal variables.

docs/make.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if errorlevel 9009 (
5656
echo.may add the Sphinx directory to PATH.
5757
echo.
5858
echo.If you don't have Sphinx installed, grab it from
59-
echo.http://sphinx-doc.org/
59+
echo.https://www.sphinx-doc.org/
6060
exit /b 1
6161
)
6262

docs/source/additional_features.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Caveats/Known Issues
178178
:py:meth:`__init__ <object.__init__>` will be replaced by ``Any``.
179179

180180
* :ref:`Validator decorators <attrs:examples-validators>`
181-
and `default decorators <http://www.attrs.org/en/stable/examples.html#defaults>`_
181+
and `default decorators <https://www.attrs.org/en/stable/examples.html#defaults>`_
182182
are not type-checked against the attribute they are setting/validating.
183183

184184
* Method definitions added by mypy currently overwrite any existing method

docs/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@
267267
intersphinx_mapping = {
268268
"python": ("https://docs.python.org/3", None),
269269
"six": ("https://six.readthedocs.io", None),
270-
"attrs": ("http://www.attrs.org/en/stable", None),
271-
"cython": ("http://docs.cython.org/en/latest", None),
270+
"attrs": ("https://www.attrs.org/en/stable/", None),
271+
"cython": ("https://docs.cython.org/en/latest", None),
272272
"monkeytype": ("https://monkeytype.readthedocs.io/en/latest", None),
273273
"setuptools": ("https://setuptools.readthedocs.io/en/latest", None),
274274
}

docs/source/faq.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Here are some potential benefits of mypy-style static typing:
3636
grows, you can adapt tricky application logic to static typing to
3737
help maintenance.
3838

39-
See also the `front page <http://www.mypy-lang.org>`_ of the mypy web
39+
See also the `front page <https://www.mypy-lang.org>`_ of the mypy web
4040
site.
4141

4242
Would my project benefit from static typing?
@@ -202,7 +202,7 @@ Mypy is a cool project. Can I help?
202202
***********************************
203203

204204
Any help is much appreciated! `Contact
205-
<http://www.mypy-lang.org/contact.html>`_ the developers if you would
205+
<https://www.mypy-lang.org/contact.html>`_ the developers if you would
206206
like to contribute. Any help related to development, design,
207207
publicity, documentation, testing, web site maintenance, financing,
208208
etc. can be helpful. You can learn a lot by contributing, and anybody

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Contents
109109
:caption: Project Links
110110

111111
GitHub <https://github.com/python/mypy>
112-
Website <http://mypy-lang.org/>
112+
Website <https://mypy-lang.org/>
113113

114114
Indices and tables
115115
==================

misc/remove-eol-whitespace.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# Remove trailing whitespace from all non-binary files in a git repo.
44

55
# From https://gist.github.com/dpaluy/3690668; originally from here:
6-
# http://unix.stackexchange.com/questions/36233/how-to-skip-file-in-sed-if-it-contains-regex/36240#36240
6+
# https://unix.stackexchange.com/questions/36233/how-to-skip-file-in-sed-if-it-contains-regex/36240#36240
77

88
git grep -I --name-only -z -e '' | xargs -0 sed -i -e 's/[ \t]\+\(\r\?\)$/\1/'

mypy/build.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1739,8 +1739,8 @@ def delete_cache(id: str, path: str, manager: BuildManager) -> None:
17391739
17401740
Now we can execute steps A-C from the first section. Finding SCCs for
17411741
step A shouldn't be hard; there's a recipe here:
1742-
http://code.activestate.com/recipes/578507/. There's also a plethora
1743-
of topsort recipes, e.g. http://code.activestate.com/recipes/577413/.
1742+
https://code.activestate.com/recipes/578507/. There's also a plethora
1743+
of topsort recipes, e.g. https://code.activestate.com/recipes/577413/.
17441744
17451745
For single nodes, processing is simple. If the node was cached, we
17461746
deserialize the cache data and fix up cross-references. Otherwise, we
@@ -3517,7 +3517,7 @@ def strongly_connected_components(
35173517
exactly once; vertices not part of a SCC are returned as
35183518
singleton sets.
35193519
3520-
From http://code.activestate.com/recipes/578507/.
3520+
From https://code.activestate.com/recipes/578507/.
35213521
"""
35223522
identified: set[str] = set()
35233523
stack: list[str] = []
@@ -3580,7 +3580,7 @@ def topsort(data: dict[T, set[T]]) -> Iterable[set[T]]:
35803580
{B, C}
35813581
{A}
35823582
3583-
From http://code.activestate.com/recipes/577413/.
3583+
From https://code.activestate.com/recipes/577413/.
35843584
"""
35853585
# TODO: Use a faster algorithm?
35863586
for k, v in data.items():

mypy/plugins/attrs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def attr_class_maker_callback(
299299
it will add an __init__ or all the compare methods.
300300
For frozen=True it will turn the attrs into properties.
301301
302-
See http://www.attrs.org/en/stable/how-does-it-work.html for information on how attrs works.
302+
See https://www.attrs.org/en/stable/how-does-it-work.html for information on how attrs works.
303303
304304
If this returns False, some required metadata was not ready yet and we need another
305305
pass.

mypy/test/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def pytest_addoption(parser: Any) -> None:
606606

607607

608608
# This function name is special to pytest. See
609-
# http://doc.pytest.org/en/latest/writing_plugins.html#collection-hooks
609+
# https://doc.pytest.org/en/latest/how-to/writing_plugins.html#collection-hooks
610610
def pytest_pycollect_makeitem(collector: Any, name: str, obj: object) -> Any | None:
611611
"""Called by pytest on each object in modules configured in conftest.py files.
612612

mypyc/doc/introduction.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The compiled language is a strict, *gradually typed* Python variant. It
1010
restricts the use of some dynamic Python features to gain performance,
1111
but it's mostly compatible with standard Python.
1212

13-
Mypyc uses `mypy <http://www.mypy-lang.org/>`_ to perform type
13+
Mypyc uses `mypy <https://www.mypy-lang.org/>`_ to perform type
1414
checking and type inference. Most type system features in the stdlib
1515
`typing <https://docs.python.org/3/library/typing.html>`_ module are
1616
supported.

mypyc/doc/make.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if errorlevel 9009 (
2121
echo.may add the Sphinx directory to PATH.
2222
echo.
2323
echo.If you don't have Sphinx installed, grab it from
24-
echo.http://sphinx-doc.org/
24+
echo.https://www.sphinx-doc.org/
2525
exit /b 1
2626
)
2727

pytest.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ python_files = test*.py
99
# logic by implementing `pytest_pycollect_makeitem` in mypy.test.data;
1010
# the test files import that module, and pytest sees the magic name
1111
# and invokes it at the relevant moment. See
12-
# http://doc.pytest.org/en/latest/writing_plugins.html#collection-hooks
12+
# https://doc.pytest.org/en/latest/how-to/writing_plugins.html#collection-hooks
1313

1414
# Both our plugin and unittest provide their own collection logic,
1515
# So we can disable the default python collector by giving it empty

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def run(self):
202202
long_description=long_description,
203203
author="Jukka Lehtosalo",
204204
author_email="[email protected]",
205-
url="http://www.mypy-lang.org/",
205+
url="https://www.mypy-lang.org/",
206206
license="MIT License",
207207
py_modules=[],
208208
ext_modules=ext_modules,
@@ -236,7 +236,7 @@ def run(self):
236236
python_requires=">=3.7",
237237
include_package_data=True,
238238
project_urls={
239-
"News": "http://mypy-lang.org/news.html",
239+
"News": "https://mypy-lang.org/news.html",
240240
"Documentation": "https://mypy.readthedocs.io/en/stable/index.html",
241241
"Repository": "https://github.com/python/mypy",
242242
},

0 commit comments

Comments
 (0)