def strip_whitespace(tokens):
    for i, token in enumerate(tokens):
        if token.type != 'S':
            break
    else:
        return []  # only whitespace
    tokens = tokens[i:]
    while tokens and tokens[-1].type == 'S':
        tokens.pop()
    return tokens
and_test_list : and_test_list AND not_test
dataset/ETHPy150Open FichteFoll/CSScheme/tinycsscheme/tinycss/parsing.py/strip_whitespace--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_and_test_list2