diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-18 12:03:50 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-18 12:11:06 +0100 |
| commit | c255ed8a6b3f5b1f81096a19072619b4ea045380 (patch) | |
| tree | 4b5f9fadc88c0bd487f3d4e51049b04acf4436f6 /setuptools/config | |
| parent | 81c944b60b81c9c2d25a38be050355d891101588 (diff) | |
| download | python-setuptools-git-c255ed8a6b3f5b1f81096a19072619b4ea045380.tar.gz | |
Improve warning message for _InvalidFile
Diffstat (limited to 'setuptools/config')
| -rw-r--r-- | setuptools/config/pyprojecttoml.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/config/pyprojecttoml.py b/setuptools/config/pyprojecttoml.py index be812142..976eb063 100644 --- a/setuptools/config/pyprojecttoml.py +++ b/setuptools/config/pyprojecttoml.py @@ -418,7 +418,7 @@ class _ExperimentalProjectMetadata(UserWarning): class _InvalidFile(UserWarning): - """Inform users that the given `pyproject.toml` is experimental: + """The given `pyproject.toml` file is invalid and would be ignored. !!\n\n ############################ # Invalid `pyproject.toml` # @@ -436,5 +436,4 @@ class _InvalidFile(UserWarning): @classmethod def message(cls): from inspect import cleandoc - msg = "\n".join(cls.__doc__.splitlines()[1:]) - return cleandoc(msg) + return cleandoc(cls.__doc__) |
