def entries2pages(entries):
    pages = []
    for pageref, group in itertools.groupby(entries, key=itemgetter("pageref")):
        pages.append(list(group))
    return pages
Validates a Query.
dataset/ETHPy150Open scrapinghub/splash/splash/har/utils.py/entries2pages--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/cloud_datastore_validator.py/_QueryValidator.validate_query