diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-07 20:04:18 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-07 20:04:18 -0400 |
| commit | 00c0ef57a1aee9cd35623936e756292a21e8d684 (patch) | |
| tree | 6197b30d9c7e9cdab40853ba878acdd74acb0396 /setuptools/dist.py | |
| parent | f11b87f894ae8ced8a91f57ac42f0195d7e515f1 (diff) | |
| download | python-setuptools-git-00c0ef57a1aee9cd35623936e756292a21e8d684.tar.gz | |
Rename to 'ignore_unless_false'.
Diffstat (limited to 'setuptools/dist.py')
| -rw-r--r-- | setuptools/dist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index 5f114d4c..8e2111a5 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -289,11 +289,11 @@ def assert_bool(dist, attr, value): raise DistutilsSetupError(tmpl.format(attr=attr, value=value)) -def invalid_ignored_if_false(dist, attr, value): +def invalid_unless_false(dist, attr, value): if not value: - warnings.warn("{attr} is ignored", DistDeprecationWarning) + warnings.warn(f"{attr} is ignored.", DistDeprecationWarning) return - raise DistutilsSetupError(f"{attr} is invalid if it is set to a true value.") + raise DistutilsSetupError(f"{attr} is invalid.") def check_requirements(dist, attr, value): |
