mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue