mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
1. Python Bug 775541: Calltips error when docstring is None. Introduced
by patch 769142. Fixed by patch 776062. KBK will backport net result to IDLE release22-maint and IDLEfork. 2. Update NEWS.txt and idlever for release.
This commit is contained in:
parent
a3788642a3
commit
6145a624b8
3 changed files with 12 additions and 4 deletions
|
@ -162,8 +162,9 @@ def get_arg_text(ob):
|
|||
except:
|
||||
pass
|
||||
# See if we can use the docstring
|
||||
doc = getattr(ob, "__doc__", "").lstrip()
|
||||
doc = getattr(ob, "__doc__", "")
|
||||
if doc:
|
||||
doc = doc.lstrip()
|
||||
pos = doc.find("\n")
|
||||
if pos < 0 or pos > 70:
|
||||
pos = 70
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue