def _parsePageToken(pageToken, numValues):
    """
    Parses the specified pageToken and returns a list of the specified
    number of values. Page tokens are assumed to consist of a fixed
    number of integers seperated by colons. If the page token does
    not conform to this specification, raise a InvalidPageToken
    exception.
    """
    tokens = pageToken.split(":")
    if len(tokens) != numValues:
        msg = "Invalid number of values in page token"
        raise exceptions.BadPageTokenException(msg)
    try:
        values = map(int, tokens)
    except __HOLE__:
        msg = "Malformed integers in page token"
        raise exceptions.BadPageTokenException(msg)
    return values
dataset/ETHPy150Open ga4gh/server/ga4gh/backend.py/_parsePageToken