summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/CallTips.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/CallTips.py')
-rw-r--r--Lib/idlelib/CallTips.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py
index 3f247d4..65e67d7 100644
--- a/Lib/idlelib/CallTips.py
+++ b/Lib/idlelib/CallTips.py
@@ -162,10 +162,8 @@ def get_arg_text(ob):
except:
pass
# See if we can use the docstring
- doc = getattr(ob, "__doc__", "")
+ doc = getattr(ob, "__doc__", "").lstrip()
if doc:
- while doc[:1] in " \t\n":
- doc = doc[1:]
pos = doc.find("\n")
if pos < 0 or pos > 70:
pos = 70