Skip to content

Commit

Permalink
Improve warning message for _InvalidFile
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 18, 2022
1 parent 81c944b commit c255ed8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setuptools/config/pyprojecttoml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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` #
Expand All @@ -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__)

0 comments on commit c255ed8

Please sign in to comment.