summaryrefslogtreecommitdiff
path: root/Lib/idlelib/rpc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-20 16:15:02 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-20 16:15:02 +0300
commitef94869f4fba32cbae214e4763a61e69d0cdad12 (patch)
treeb117ed238d10f7f06bfb6246a8c8009a0da83caa /Lib/idlelib/rpc.py
parent5d6b7b1cb7943255b8682ea3663ce2c0da500e96 (diff)
downloadcpython-git-ef94869f4fba32cbae214e4763a61e69d0cdad12.tar.gz
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.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py
index f2aae516c8..aa33041e7b 100644
--- a/Lib/idlelib/rpc.py
+++ b/Lib/idlelib/rpc.py
@@ -340,10 +340,7 @@ class SocketIO(object):
n = self.sock.send(s[:BUFSIZE])
except (AttributeError, TypeError):
raise OSError("socket no longer exists")
- except OSError:
- raise
- else:
- s = s[n:]
+ s = s[n:]
buff = b''
bufneed = 4