Commit 49364a9e authored by Jason R. Coombs's avatar Jason R. Coombs

Fix AttributeError in Description validation. Fixes #2539.

parent c5e0397b
Fix AttributeError in Description validation.
......@@ -122,7 +122,7 @@ def single_line(val):
# quick and dirty validation for description pypa/setuptools#1390
if '\n' in val:
# TODO after 2021-07-31: Replace with `raise ValueError("newlines not allowed")`
warnings.UserWarning("newlines not allowed and will break in the future")
warnings.warn("newlines not allowed and will break in the future")
val = val.replace('\n', ' ')
return val
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment