mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									d5710f8b36
								
							
						
					
					
						commit
						0e3b0e397e
					
				
					 1 changed files with 1 additions and 7 deletions
				
			
		|  | @ -48,13 +48,7 @@ def position_window(self): | ||||||
|     def showtip(self, text, parenleft, parenright): |     def showtip(self, text, parenleft, parenright): | ||||||
|         """Show the calltip, bind events which will close it and reposition it. |         """Show the calltip, bind events which will close it and reposition it. | ||||||
|         """ |         """ | ||||||
|         # truncate overly long calltip |         # Only called in CallTips, where lines are truncated | ||||||
|         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) |  | ||||||
|         self.text = text |         self.text = text | ||||||
|         if self.tipwindow or not self.text: |         if self.tipwindow or not self.text: | ||||||
|             return |             return | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Terry Jan Reedy
						Terry Jan Reedy