def _write(self, s):
        """Write a string out to the SSL socket fully."""
        try:
            write = self.sock.write
        except AttributeError:
            # Works around a bug in python socket library
            raise IOError('Socket closed')
        else:
            while s:
                n = write(s)
                if not n:
                    raise IOError('Socket closed')
                s = s[n:]
def _write ( self , s ) : try : write = self . sock . write except AttributeError : raise IOError ( 'Socket closed' ) else : while s : n = write ( s ) if not n : raise IOError ( 'Socket closed' ) s = s [ n : ]
Write a string out to the SSL socket fully.