From 3dabc9b0080116f041856c108b0261bf1ae68653 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 29 Nov 2021 08:56:30 -0500 Subject: [PATCH] Update comment and docstring. --- setuptools/dist.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setuptools/dist.py b/setuptools/dist.py index fb1688612c..74afa98fd6 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -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