From: Kurt B. Kaiser Date: Wed, 23 Jul 2003 16:25:43 +0000 (+0000) Subject: Backport Python Patches 769142, 776062 from 2.3 Lib/idlelib: X-Git-Tag: 2.2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75c9877789c5f632cf39b3abff48d133b499b250;p=thirdparty%2FPython%2Fcpython.git Backport Python Patches 769142, 776062 from 2.3 Lib/idlelib: CallTip error when docstring contains only \n and/or \t --- diff --git a/Tools/idle/CallTips.py b/Tools/idle/CallTips.py index dc25083e7eb8..6132be5fcdce 100644 --- a/Tools/idle/CallTips.py +++ b/Tools/idle/CallTips.py @@ -148,8 +148,7 @@ def get_arg_text(ob): # See if we can use the docstring doc = getattr(ob, "__doc__", "") if doc: - while doc[:1] in " \t\n": - doc = doc[1:] + doc = doc.lstrip() pos = doc.find("\n") if pos < 0 or pos > 70: pos = 70