def get_pages()

in memory_analyzer/frontend/frontend_utils.py [0:0]


def get_pages(filename):
    """
    Read each pickled object in the given file as a page.
    The objects will be lists of lists.
    """
    with open(filename, "rb") as fd:
        while True:
            try:
                yield pickle.load(fd)
            except EOFError:
                break
            except pickle.UnpicklingError:
                raise