From: Terry Jan Reedy Date: Wed, 22 Jan 2014 02:12:24 +0000 (-0500) Subject: Issue #20818: Remove code from idlelib.CallTipWindow.showtip that is now X-Git-Tag: v3.3.4rc1~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e3b0e397e7bd986e2284e2b9ed2be00b404019c;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/idlelib/CallTipWindow.py b/Lib/idlelib/CallTipWindow.py index a2431f8eff30..8e29dabaea3d 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