Skip to content

Commit

Permalink
Fix URLs in warnings and logs (#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Apr 24, 2023
2 parents 53e2824 + 9a48d65 commit 6a8a00c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/3902.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed wrong URLs used in warnings and logs.
2 changes: 1 addition & 1 deletion setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ def _update_zipimporter_cache(normalized_path, cache, updater=None):
# get/del patterns instead. For more detailed information see the
# following links:
# https://github.com/pypa/setuptools/issues/202#issuecomment-202913420
# http://bit.ly/2h9itJX
# https://foss.heptapod.net/pypy/pypy/-/blob/144c4e65cb6accb8e592f3a7584ea38265d1873c/pypy/module/zipimport/interp_zipimport.py
old_entry = cache[p]
del cache[p]
new_entry = updater and updater(p, old_entry)
Expand Down
2 changes: 1 addition & 1 deletion setuptools/config/setupcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,4 +786,4 @@ def message(cls, **kw):


class _DeprecatedConfig(SetuptoolsDeprecationWarning):
_SEE_DOCS = "https://setuptools.pypa.io/en/latest/userguide/declarative_config.html"
_SEE_DOCS = "userguide/declarative_config.html"
3 changes: 2 additions & 1 deletion setuptools/package_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ def url_ok(self, url, fatal=False):
return True
msg = (
"\nNote: Bypassing %s (disallowed host; see "
"http://bit.ly/2hrImnY for details).\n"
"https://setuptools.pypa.io/en/latest/deprecated/"
"easy_install.html#restricting-downloads-with-allow-hosts for details).\n"
)
if fatal:
raise DistutilsError(msg % url)
Expand Down

0 comments on commit 6a8a00c

Please sign in to comment.