Issue #24245: Eliminated senseless expect clauses that have no any effect in

IDLE.  Patch by Martin Panter.
This commit is contained in:
Serhiy Storchaka 2015-05-20 16:15:02 +03:00
parent 5d6b7b1cb7
commit ef94869f4f
2 changed files with 12 additions and 19 deletions

View file

@ -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