(self, strip_crlf=True)
return line
Internal: return one line from the server, stripping _CRLF.
        Raise EOFError if the connection is closed.
        Returns a bytes object.
Internal: return one line from the server, stripping _CRLF.
        Raise EOFError if the connection is closed.
        Returns a bytes object.
Internal : return one line from the server stripping _CRLF . Raise EOFError if the connection is closed . Returns a bytes object .
def _getline(self, strip_crlf=True):
        """Internal: return one line from the server, stripping _CRLF.
        Raise EOFError if the connection is closed.
        Returns a bytes object."""
        line = self.file.readline(_MAXLINE +1)
        if len(line) > _MAXLINE:
            raise NNTPDataError('line too long')
        if self.debugging > 1:
            print('*get*', repr(line))
        if not line: raise EOFError
        if strip_crlf:
            if line[-2:] == _CRLF:
                line = line[:-2]
            elif line[-1:] in _CRLF:
                line = line[:-1]
        return line
def _getline ( self , strip_crlf = True ) : line = self . file . readline ( _MAXLINE + 1 ) if len ( line ) > _MAXLINE : raise NNTPDataError ( 'line too long' ) if self . debugging > 1 : print ( '*get*' , repr ( line ) ) if not line : raise EOFError if strip_crlf : if line [ - 2 : ] == _CRLF : line = line [ : - 2 ] elif line [ - 1 : ] in _CRLF : line = line [ : - 1 ] return line