diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-08-23 01:06:15 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-08-23 01:06:15 (GMT) |
commit | ad66742e3459addfaf7542808611c7dca254a8fd (patch) | |
tree | aa478d06ca74ee33330fea9599ca8e268de6c776 /Lib/idlelib/EditorWindow.py | |
parent | e45be28be665a04aef0d0a7444ba27fde2dd2d5f (diff) | |
download | cpython-ad66742e3459addfaf7542808611c7dca254a8fd.zip cpython-ad66742e3459addfaf7542808611c7dca254a8fd.tar.gz cpython-ad66742e3459addfaf7542808611c7dca254a8fd.tar.bz2 |
Fix raise with 2to3
M idlelib/configHandler.py
M idlelib/tabpage.py
M idlelib/EditorWindow.py
M idlelib/rpc.py
M idlelib/IOBinding.py
M idlelib/RemoteDebugger.py
M idlelib/TreeWidget.py
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 2d11f90..e051348 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -38,7 +38,7 @@ def _find_module(fullname, path=None): try: path = module.__path__ except AttributeError: - raise ImportError, 'No source for module ' + module.__name__ + raise ImportError('No source for module ' + module.__name__) return file, filename, descr class EditorWindow(object): @@ -955,14 +955,14 @@ class EditorWindow(object): value = var.get() return value else: - raise NameError, name + raise NameError(name) def setvar(self, name, value, vartype=None): var = self.get_var_obj(name, vartype) if var: var.set(value) else: - raise NameError, name + raise NameError(name) def get_var_obj(self, name, vartype=None): var = self.tkinter_vars.get(name) |