diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-20 13:14:54 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-20 13:14:54 (GMT) |
commit | bc5046634af21893627e1c11deba14552da44ba8 (patch) | |
tree | d7727ff2eef1d673b61eb83dc48efe31fe2fd80c /Lib/idlelib/rpc.py | |
parent | 9eb0c0e73ec53b8d0e2917c44bcae05a18b56f53 (diff) | |
download | cpython-bc5046634af21893627e1c11deba14552da44ba8.zip cpython-bc5046634af21893627e1c11deba14552da44ba8.tar.gz cpython-bc5046634af21893627e1c11deba14552da44ba8.tar.bz2 |
Issue #24245: Eliminated senseless expect clauses that have no any effect in
IDLE. Patch by Martin Panter.
Diffstat (limited to 'Lib/idlelib/rpc.py')
-rw-r--r-- | Lib/idlelib/rpc.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index 8f611a3..5c4aabd 100644 --- a/Lib/idlelib/rpc.py +++ b/Lib/idlelib/rpc.py @@ -332,10 +332,7 @@ class SocketIO(object): n = self.sock.send(s[:BUFSIZE]) except (AttributeError, TypeError): raise IOError, "socket no longer exists" - except socket.error: - raise - else: - s = s[n:] + s = s[n:] buffer = "" bufneed = 4 |