From 49ae00822c910f62462fd881b1161bb8178b637d Mon Sep 17 00:00:00 2001 From: Olle Lundberg Date: Fri, 15 Aug 2014 21:00:56 +0200 Subject: Remove raising of socket excpetions from sendall*. --- paramiko/channel.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/paramiko/channel.py b/paramiko/channel.py index 6ccdeea4..4b83f81e 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -729,9 +729,6 @@ class Channel (object): This is irritating, but identically follows Python's API. """ while s: - if self.closed: - # this doesn't seem useful, but it is the documented behavior of Socket - raise socket.error('Socket is closed') sent = self.send(s) s = s[sent:] return None @@ -753,8 +750,6 @@ class Channel (object): .. versionadded:: 1.1 """ while s: - if self.closed: - raise socket.error('Socket is closed') sent = self.send_stderr(s) s = s[sent:] return None -- cgit v1.2.3