We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd632eb commit 1d244dcCopy full SHA for 1d244dc
1 file changed
Tools/clinic/clinic.py
@@ -5520,7 +5520,7 @@ def format_docstring(self) -> str:
5520
# Guido said Clinic should enforce this:
5521
# http://mail.python.org/pipermail/python-dev/2013-June/127110.html
5522
5523
- lines = [line for line in f.docstring.split('\n')]
+ lines = f.docstring.splitlines()
5524
if len(lines) >= 2:
5525
if lines[1]:
5526
fail("Docstring for " + f.full_name + " does not have a summary line!\n" +
0 commit comments