From: Kurt B. Kaiser Date: Wed, 23 Jul 2003 15:42:14 +0000 (+0000) Subject: 1. Python Bug 775541: Calltips error when docstring is None. Introduced X-Git-Tag: v2.3c2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6145a624b8d9232f54eef3cb64777c4ba4c471f4;p=python 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. --- diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index 65e67d7189..67d97d27bb 100644 --- a/Lib/idlelib/CallTips.py +++ b/Lib/idlelib/CallTips.py @@ -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 diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index aa9fb24c05..27ef39fbe6 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -1,7 +1,14 @@ -What's New in IDLE 1.0rc1? +What's New in IDLE 1.0 release candidate 2? =================================== -*Release date: 17-Jul-2003* +*Release date: 24-Jul-2003* + +- Calltip error when docstring was None Python Bug 775541 + +What's New in IDLE 1.0 release candidate 1? +=================================== + +*Release date: 18-Jul-2003* - Updated extend.txt, help.txt, and config-extensions.def to correctly reflect the current status of the configuration system. Python Bug 768469 diff --git a/Lib/idlelib/idlever.py b/Lib/idlelib/idlever.py index 5a0e900ed0..0f11ae2f2a 100644 --- a/Lib/idlelib/idlever.py +++ b/Lib/idlelib/idlever.py @@ -1 +1 @@ -IDLE_VERSION = "1.0rc1" +IDLE_VERSION = "1.0rc2"