bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)

This commit is contained in:
Emmanuel Arias 2019-01-03 04:47:58 -03:00 committed by Terry Jan Reedy
parent aff0adabf3
commit ab54b9a130
4 changed files with 32 additions and 1 deletions

View file

@ -167,7 +167,7 @@ def get_argspec(ob):
if len(line) > _MAX_COLS:
line = line[: _MAX_COLS - 3] + '...'
lines.append(line)
argspec = '\n'.join(lines)
argspec = '\n'.join(lines)
if not argspec:
argspec = _default_callable_argspec
return argspec