summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/CallTips.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-07-23 15:42:14 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-07-23 15:42:14 (GMT)
commit6145a624b8d9232f54eef3cb64777c4ba4c471f4 (patch)
tree80cf9d09c6e44f62b37b516f47a945613e159984 /Lib/idlelib/CallTips.py
parenta3788642a3dd46d8efa1a424781c2dcb643b2952 (diff)
downloadcpython-6145a624b8d9232f54eef3cb64777c4ba4c471f4.zip
cpython-6145a624b8d9232f54eef3cb64777c4ba4c471f4.tar.gz
cpython-6145a624b8d9232f54eef3cb64777c4ba4c471f4.tar.bz2
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.
Diffstat (limited to 'Lib/idlelib/CallTips.py')
-rw-r--r--Lib/idlelib/CallTips.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py
index 65e67d7..67d97d2 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