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:
Kurt B. Kaiser 2007-08-23 01:06:15 +00:00
parent e45be28be6
commit ad66742e34
7 changed files with 19 additions and 19 deletions

View file

@ -256,8 +256,8 @@ class SocketIO(object):
return None
if how == "ERROR":
self.debug("decoderesponse: Internal ERROR:", what)
raise RuntimeError, what
raise SystemError, (how, what)
raise RuntimeError(what)
raise SystemError(how, what)
def decode_interrupthook(self):
""
@ -331,7 +331,7 @@ class SocketIO(object):
r, w, x = select.select([], [self.sock], [])
n = self.sock.send(s[:BUFSIZE])
except (AttributeError, TypeError):
raise IOError, "socket no longer exists"
raise IOError("socket no longer exists")
except socket.error:
raise
else:
@ -557,7 +557,7 @@ class RPCProxy(object):
(name,), {})
return value
else:
raise AttributeError, name
raise AttributeError(name)
def __getattributes(self):
self.__attributes = self.sockio.remotecall(self.oid,