def readlines(self):
        """Return a list with all remaining lines.
        """
        result = []
        while True:
            line = self.readline()
            if not line: break
            result.append(line)
        return result
Return a list with all remaining lines.
        
product/gradle-plugin/src/main/python/pip/_vendor/distlib/_backport/tarfile.py