import string


def _consume_whitespace(line, start=0):
    """return index of next non whitespace character

    returns length of string if it can't find anything
    """
    for i, c in enumerate(line[start:]):
        if c not in string.whitespace:
            return i+start

    return len(line)