Skip to content

Commit

Permalink
Update comment and docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 29, 2021
1 parent bdba8e7 commit 3dabc9b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ def read_pkg_file(self, file):


def single_line(val):
# quick and dirty validation for description pypa/setuptools#1390
"""
Quick and dirty validation for Summary pypa/setuptools#1390.
"""
if '\n' in val:
# TODO after 2021-07-31: Replace with `raise ValueError("newlines not allowed")`
# TODO: Replace with `raise ValueError("newlines not allowed")`
# after reviewing #2893.
warnings.warn("newlines not allowed and will break in the future")
val = val.strip().split('\n')[0]
return val
Expand Down

0 comments on commit 3dabc9b

Please sign in to comment.