Reverse if statement's condition

This commit is contained in:
Pradyun Gedam 2020-07-27 13:52:54 +05:30
parent 8db354260a
commit 4e4951066d
No known key found for this signature in database
GPG Key ID: FF99710C4332258E
1 changed files with 12 additions and 12 deletions

View File

@ -546,7 +546,18 @@ class InstallCommand(RequirementCommand):
return
parts = [] # type: List[str]
if new_resolver:
if not new_resolver:
parts.append(
"After October 2020 you may experience errors when installing "
"or updating packages. This is because pip will change the "
"way that it resolves dependency conflicts.\n"
)
parts.append(
"We recommend you use --use-feature=2020-resolver to test "
"your packages with the new resolver before it becomes the "
"default.\n"
)
else:
# NOTE: trailing newlines here are intentional
parts.append(
"Pip will install or upgrade your package(s) and its "
@ -559,17 +570,6 @@ class InstallCommand(RequirementCommand):
"If you would like pip to take your other packages into "
"account, please tell us here: {}\n".format(form_link)
)
else:
parts.append(
"After October 2020 you may experience errors when installing "
"or updating packages. This is because pip will change the "
"way that it resolves dependency conflicts.\n"
)
parts.append(
"We recommend you use --use-feature=2020-resolver to test "
"your packages with the new resolver before it becomes the "
"default.\n"
)
# NOTE: There is some duplication here, with commands/check.py
for project_name in missing: