(self, len=0, buffer=None)
Read up to LEN bytes and return them.
        Return zero-length string on EOF.
Read up to LEN bytes and return them.
        Return zero-length string on EOF.
Read up to LEN bytes and return them . Return zero - length string on EOF .
def read(self, len=0, buffer=None):
        """Read up to LEN bytes and return them.
        Return zero-length string on EOF."""

        self._checkClosed()
        try:
            if buffer is not None:
                v = self._sslobj.read(len, buffer)
            else:
                v = self._sslobj.read(len or 1024)
            return v
        except SSLError as x:
            if x.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
                if buffer is not None:
                    return 0
                else:
                    return b''
            else:
                raise
def read ( self , len = 0 , buffer = None ) : self . _checkClosed ( ) try : if buffer is not None : v = self . _sslobj . read ( len , buffer ) else : v = self . _sslobj . read ( len or 1024 ) return v except SSLError as x : if x . args [ 0 ] == SSL_ERROR_EOF and self . suppress_ragged_eofs : if buffer is not None : return 0 else : return b'' else : raise