def _readline( self, file_like, max_length=0 ):
        if max_length == 0:
            max_length = self.max_line_length

        line = file_like.readline( max_length )
        partial = len( line) > 0 and line[-1] != '\n' and line[-1] != '\r'
        return line, partial
Takes a file_like object (e.g. anything conforming to python's file interface
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/line_matcher.py/LineMatcher._readline