Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Use splitlines() iso. comprehension"
This reverts commit 1d244dc.
  • Loading branch information
erlend-aasland committed Aug 4, 2023
commit 9d3ed09e64b23885c5f774610384929fa15bf8a8
2 changes: 1 addition & 1 deletion Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5520,7 +5520,7 @@ def format_docstring(self) -> str:
# Guido said Clinic should enforce this:
# http://mail.python.org/pipermail/python-dev/2013-June/127110.html

lines = f.docstring.splitlines()
lines = [line for line in f.docstring.split('\n')]
Comment thread
erlend-aasland marked this conversation as resolved.
Outdated
Comment thread
erlend-aasland marked this conversation as resolved.
Outdated
if len(lines) >= 2:
if lines[1]:
fail("Docstring for " + f.full_name + " does not have a summary line!\n" +
Expand Down