mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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
This commit is contained in:
parent
e45be28be6
commit
ad66742e34
7 changed files with 19 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue