summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-01-22 02:12:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-01-22 02:12:13 (GMT)
commitb190b33f6445df81aeb0b35021a5a1651e930dec (patch)
tree4dd5d0a887f0cc158318945f095dd0c730040f5c
parent82c48e098aff18ab203ed7a22b17b38ea43992e1 (diff)
downloadcpython-b190b33f6445df81aeb0b35021a5a1651e930dec.zip
cpython-b190b33f6445df81aeb0b35021a5a1651e930dec.tar.gz
cpython-b190b33f6445df81aeb0b35021a5a1651e930dec.tar.bz2
Issue #20818: Remove code from idlelib.CallTipWindow.showtip that is now
completely redundant. After 16638 patch, CallTips.get_argspec trims over-long signature strings as well as docstring lines.
-rw-r--r--Lib/idlelib/CallTipWindow.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/idlelib/CallTipWindow.py b/Lib/idlelib/CallTipWindow.py
index 7bb62b4..af80966 100644
--- a/Lib/idlelib/CallTipWindow.py
+++ b/Lib/idlelib/CallTipWindow.py
@@ -48,13 +48,7 @@ class CallTip:
def showtip(self, text, parenleft, parenright):
"""Show the calltip, bind events which will close it and reposition it.
"""
- # truncate overly long calltip
- if len(text) >= 79:
- textlines = text.splitlines()
- for i, line in enumerate(textlines):
- if len(line) > 79:
- textlines[i] = line[:75] + ' ...'
- text = '\n'.join(textlines)
+ # Only called in CallTips, where lines are truncated
self.text = text
if self.tipwindow or not self.text:
return