mirror of
https://github.com/python/cpython.git
synced 2026-05-04 09:31:02 +00:00
Update Lib/idlelib/calltip.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
3eb20acc79
commit
77c87cabe8
1 changed files with 1 additions and 2 deletions
|
|
@ -187,8 +187,7 @@ def get_argspec(ob):
|
|||
# Augment lines from docstring, if any, and join to get argspec.
|
||||
doc = inspect.getdoc(ob)
|
||||
if doc:
|
||||
for line in doc.split('\n'):
|
||||
lines.append(line.strip())
|
||||
lines.extend(map(str.strip, doc.split('\n')))
|
||||
argspec = '\n'.join(lines)
|
||||
|
||||
return argspec or _default_callable_argspec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue