Skip to content

Commit 15e886c

Browse files
author
ziebam
committed
Use a redirect instead of a long static URL
1 parent 1185ce4 commit 15e886c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pip/_internal/resolution/resolvelib/reporter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class PipReporter(BaseReporter):
1313
def __init__(self) -> None:
1414
self.backtracks_by_package: DefaultDict[str, int] = defaultdict(int)
1515

16-
reduce_backtracking_url = "https://pip.pypa.io/en/latest/topics/dependency-resolution/#possible-ways-to-reduce-backtracking" # noqa: E501
1716
self._messages_at_backtrack = {
1817
1: (
1918
"pip is looking at multiple versions of {package_name} to "
@@ -28,8 +27,8 @@ def __init__(self) -> None:
2827
13: (
2928
"This is taking longer than usual. You might need to provide "
3029
"the dependency resolver with stricter constraints to reduce "
31-
f"runtime. See {reduce_backtracking_url} for tips and/or "
32-
"press Ctrl + C to abort this run."
30+
"runtime. See https://pip.pypa.io/warnings/backtracking for "
31+
"tips and/or press Ctrl + C to abort this run."
3332
),
3433
}
3534

0 commit comments

Comments
 (0)