Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6145a62

Browse files
committed
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.
1 parent a378864 commit 6145a62

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

Lib/idlelib/CallTips.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ def get_arg_text(ob):
162162
except:
163163
pass
164164
# See if we can use the docstring
165-
doc = getattr(ob, "__doc__", "").lstrip()
165+
doc = getattr(ob, "__doc__", "")
166166
if doc:
167+
doc = doc.lstrip()
167168
pos = doc.find("\n")
168169
if pos < 0 or pos > 70:
169170
pos = 70

Lib/idlelib/NEWS.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
What's New in IDLE 1.0rc1?
1+
What's New in IDLE 1.0 release candidate 2?
22
===================================
33

4-
*Release date: 17-Jul-2003*
4+
*Release date: 24-Jul-2003*
5+
6+
- Calltip error when docstring was None Python Bug 775541
7+
8+
What's New in IDLE 1.0 release candidate 1?
9+
===================================
10+
11+
*Release date: 18-Jul-2003*
512

613
- Updated extend.txt, help.txt, and config-extensions.def to correctly
714
reflect the current status of the configuration system. Python Bug 768469

Lib/idlelib/idlever.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
IDLE_VERSION = "1.0rc1"
1+
IDLE_VERSION = "1.0rc2"

0 commit comments

Comments
 (0)