def _setup_transport(self):
if hasattr(self, '<STR_LIT>'):<EOL><INDENT>self.sock = ssl.wrap_socket(self.sock, **self.sslopts)<EOL><DEDENT>else:<EOL><INDENT>self.sock = ssl.wrap_socket(self.sock)<EOL><DEDENT>self.sock.do_handshake()<EOL>self._quick_recv = self.sock.read<EOL>
Wrap the socket in an SSL object.