def _write(self, s):
try:<EOL><INDENT>write = self.sock.write<EOL><DEDENT>except AttributeError:<EOL><INDENT>raise IOError('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>while s:<EOL><INDENT>n = write(s)<EOL>if not n:<EOL><INDENT>raise IOError('<STR_LIT>')<EOL><DEDENT>s = s[n:]<EOL><DEDENT><DEDENT>
Write a string out to the SSL socket fully.