diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-08-22 23:01:33 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-08-22 23:01:33 (GMT) |
commit | 2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175 (patch) | |
tree | c87d54545f01a1e080fd51c091d669871f8374dd /Lib/idlelib/EditorWindow.py | |
parent | 86d8b3497fb509d1c52f6f29f74854ec96987f23 (diff) | |
download | cpython-2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175.zip cpython-2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175.tar.gz cpython-2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175.tar.bz2 |
Switch to absolute imports to support direct execution of modules. Many
IDLE modules have main() or test() functions which are essential for testing.
M idlelib/AutoCompleteWindow.py
M idlelib/UndoDelegator.py
M idlelib/Bindings.py
M idlelib/AutoComplete.py
M idlelib/configHandler.py
M idlelib/HyperParser.py
M idlelib/ColorDelegator.py
M idlelib/ObjectBrowser.py
M idlelib/ZoomHeight.py
M idlelib/PyShell.py
M idlelib/ParenMatch.py
M idlelib/Debugger.py
M idlelib/configDialog.py
M idlelib/StackViewer.py
M idlelib/ReplaceDialog.py
M idlelib/ScriptBinding.py
M idlelib/GrepDialog.py
M idlelib/EditorWindow.py
M idlelib/FormatParagraph.py
M idlelib/OutputWindow.py
M idlelib/aboutDialog.py
M idlelib/IdleHistory.py
M idlelib/PathBrowser.py
M idlelib/ClassBrowser.py
M idlelib/CallTips.py
M idlelib/FileList.py
M idlelib/idle.py
M idlelib/CodeContext.py
M idlelib/SearchDialog.py
M idlelib/RemoteObjectBrowser.py
M idlelib/RemoteDebugger.py
M idlelib/TreeWidget.py
M idlelib/run.py
M idlelib/Percolator.py
M idlelib/macosxSupport.py
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 27ff6e1..2d11f90 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -10,16 +10,16 @@ import tkMessageBox import traceback import webbrowser -from .MultiCall import MultiCallCreator -from . import idlever -from . import WindowList -from . import SearchDialog -from . import GrepDialog -from . import ReplaceDialog -from . import PyParse -from .configHandler import idleConf -from . import aboutDialog, textView, configDialog -from . 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 @@ -42,13 +42,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 - from . 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 @@ -532,11 +532,11 @@ class EditorWindow(object): return None head, tail = os.path.split(filename) base, ext = os.path.splitext(tail) - from . import ClassBrowser + from idlelib import ClassBrowser ClassBrowser.ClassBrowser(self.flist, base, [head]) def open_path_browser(self, event=None): - from . import PathBrowser + from idlelib import PathBrowser PathBrowser.PathBrowser(self.flist) def gotoline(self, lineno): |