Skip to content

Commit 77c87ca

Browse files
znsoooopicnixz
andauthored
Update Lib/idlelib/calltip.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 3eb20ac commit 77c87ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/idlelib/calltip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ def get_argspec(ob):
187187
# Augment lines from docstring, if any, and join to get argspec.
188188
doc = inspect.getdoc(ob)
189189
if doc:
190-
for line in doc.split('\n'):
191-
lines.append(line.strip())
190+
lines.extend(map(str.strip, doc.split('\n')))
192191
argspec = '\n'.join(lines)
193192

194193
return argspec or _default_callable_argspec

0 commit comments

Comments
 (0)