

def collect_parameters(rest):
    'Scans the string and collects parts\n    that look like parameter, returns deque of strings\n    '
    parameters = deque()
    (p, rest) = match_parameter(rest)
    while p:
        parameters.append(p)
        (p, rest) = match_parameter(rest)
    return parameters

dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parametrized.py collect_parameters/original