Skip to content

Commit 6a8a00c

Browse files
committed
Fix URLs in warnings and logs (#3902)
2 parents 53e2824 + 9a48d65 commit 6a8a00c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

changelog.d/3902.misc.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed wrong URLs used in warnings and logs.

setuptools/command/easy_install.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ def _update_zipimporter_cache(normalized_path, cache, updater=None):
18451845
# get/del patterns instead. For more detailed information see the
18461846
# following links:
18471847
# https://github.com/pypa/setuptools/issues/202#issuecomment-202913420
1848-
# http://bit.ly/2h9itJX
1848+
# https://foss.heptapod.net/pypy/pypy/-/blob/144c4e65cb6accb8e592f3a7584ea38265d1873c/pypy/module/zipimport/interp_zipimport.py
18491849
old_entry = cache[p]
18501850
del cache[p]
18511851
new_entry = updater and updater(p, old_entry)

setuptools/config/setupcfg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -786,4 +786,4 @@ def message(cls, **kw):
786786

787787

788788
class _DeprecatedConfig(SetuptoolsDeprecationWarning):
789-
_SEE_DOCS = "https://setuptools.pypa.io/en/latest/userguide/declarative_config.html"
789+
_SEE_DOCS = "userguide/declarative_config.html"

setuptools/package_index.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ def url_ok(self, url, fatal=False):
402402
return True
403403
msg = (
404404
"\nNote: Bypassing %s (disallowed host; see "
405-
"http://bit.ly/2hrImnY for details).\n"
405+
"https://setuptools.pypa.io/en/latest/deprecated/"
406+
"easy_install.html#restricting-downloads-with-allow-hosts for details).\n"
406407
)
407408
if fatal:
408409
raise DistutilsError(msg % url)

0 commit comments

Comments
 (0)