def readlines(self, size=DEFAULT):
        if self.mode in WRITE_MODES:
            raise IOError('Bad file descriptor')

        # argument actually ignored
        if size is not DEFAULT:
            self._check_int_argument(size)

        result = list(self)
        self._in_iter = False
        return result
readlines([size]) -> list of strings, each a line from the file.
dataset/ETHPy150Open mockfs/mockfs/mockfs/storage.py/file.readlines