mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	#7092: Fix additional "-3" warnings in the idlelib package, and convert to absolute imports.
This commit is contained in:
		
							parent
							
								
									f28dd0d1bf
								
							
						
					
					
						commit
						d630c04ab1
					
				
					 37 changed files with 169 additions and 149 deletions
				
			
		|  | @ -5,18 +5,18 @@ | |||
| from Tkinter import * | ||||
| import tkSimpleDialog | ||||
| import tkMessageBox | ||||
| from MultiCall import MultiCallCreator | ||||
| 
 | ||||
| import webbrowser | ||||
| import idlever | ||||
| import WindowList | ||||
| import SearchDialog | ||||
| import GrepDialog | ||||
| import ReplaceDialog | ||||
| import PyParse | ||||
| from configHandler import idleConf | ||||
| import aboutDialog, textView, configDialog | ||||
| import macosxSupport | ||||
| 
 | ||||
| from idlelib.MultiCall import MultiCallCreator | ||||
| from idlelib import idlever | ||||
| from idlelib import WindowList | ||||
| from idlelib import SearchDialog | ||||
| from idlelib import GrepDialog | ||||
| from idlelib import ReplaceDialog | ||||
| from idlelib import PyParse | ||||
| from idlelib.configHandler import idleConf | ||||
| from idlelib import aboutDialog, textView, configDialog | ||||
| from idlelib import macosxSupport | ||||
| 
 | ||||
| # The default tab setting for a Text widget, in average-width characters. | ||||
| TK_TABWIDTH_DEFAULT = 8 | ||||
|  | @ -51,13 +51,13 @@ def _find_module(fullname, path=None): | |||
|     return file, filename, descr | ||||
| 
 | ||||
| class EditorWindow(object): | ||||
|     from Percolator import Percolator | ||||
|     from ColorDelegator import ColorDelegator | ||||
|     from UndoDelegator import UndoDelegator | ||||
|     from IOBinding import IOBinding, filesystemencoding, encoding | ||||
|     import Bindings | ||||
|     from idlelib.Percolator import Percolator | ||||
|     from idlelib.ColorDelegator import ColorDelegator | ||||
|     from idlelib.UndoDelegator import UndoDelegator | ||||
|     from idlelib.IOBinding import IOBinding, filesystemencoding, encoding | ||||
|     from idlelib import Bindings | ||||
|     from Tkinter import Toplevel | ||||
|     from MultiStatusBar import MultiStatusBar | ||||
|     from idlelib.MultiStatusBar import MultiStatusBar | ||||
| 
 | ||||
|     help_url = None | ||||
| 
 | ||||
|  | @ -580,11 +580,11 @@ def open_class_browser(self, event=None): | |||
|             return None | ||||
|         head, tail = os.path.split(filename) | ||||
|         base, ext = os.path.splitext(tail) | ||||
|         import ClassBrowser | ||||
|         from idlelib import ClassBrowser | ||||
|         ClassBrowser.ClassBrowser(self.flist, base, [head]) | ||||
| 
 | ||||
|     def open_path_browser(self, event=None): | ||||
|         import PathBrowser | ||||
|         from idlelib import PathBrowser | ||||
|         PathBrowser.PathBrowser(self.flist) | ||||
| 
 | ||||
|     def gotoline(self, lineno): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Florent Xicluna
						Florent Xicluna