From ad66742e3459addfaf7542808611c7dca254a8fd Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Thu, 23 Aug 2007 01:06:15 +0000 Subject: 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 --- Lib/idlelib/rpc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Lib/idlelib/rpc.py') diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index c75be10f71..eb262f4625 100644 --- a/Lib/idlelib/rpc.py +++ b/Lib/idlelib/rpc.py @@ -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, -- cgit v1.2.1