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/rpc.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/rpc.py')
-rw-r--r-- | Lib/idlelib/rpc.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index c75be10..eb262f4 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, |