(self, mode, bufsize=None)
return StringIO(string.join(msgbuf, ""))
Return a readable file-like object with data from socket.

        This method offers only partial support for the makefile
        interface of a real socket.  It only supports modes 'r' and
        'rb' and the bufsize argument is ignored.

        The returned object contains *all* of the file data
Return a readable file-like object with data from socket.
Return a readable file - like object with data from socket .
def makefile(self, mode, bufsize=None):
        """Return a readable file-like object with data from socket.

        This method offers only partial support for the makefile
        interface of a real socket.  It only supports modes 'r' and
        'rb' and the bufsize argument is ignored.

        The returned object contains *all* of the file data
        """
        if mode != 'r' and mode != 'rb':
            raise UnimplementedFileMode()

        msgbuf = []
        while 1:
            try:
                buf = self.__ssl.read()
            except socket.sslerror, err:
                if err[0] == 'EOF':
                    break
                raise
            except socket.error, err:
                if err[0] == errno.EINTR:
                    continue
                raise
            if buf == '':
                break
            msgbuf.append(buf)
        return StringIO(string.join(msgbuf, ""))
def makefile ( self , mode , bufsize = None ) : if mode != 'r' and mode != 'rb' : raise UnimplementedFileMode ( ) msgbuf = [ ] while 1 : try : buf = self . __ssl . read ( ) except socket . sslerror , err : if err [ 0 ] == 'EOF' : break raise except socket . error , err : if err [ 0 ] == errno . EINTR : continue raise if buf == '' : break msgbuf . append ( buf ) return StringIO ( string . join ( msgbuf , "" ) )