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:
Kurt B. Kaiser 2003-07-23 15:42:14 +00:00
parent a3788642a3
commit 6145a624b8
3 changed files with 12 additions and 4 deletions

View file

@ -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