def parse_pattern(source, options):
    tokens = TokenStream(re.sub(r'([\[\]\(\)\|]|\.\.\.)', r' \1 ', source),
                         DocoptLanguageError)
    result = parse_expr(tokens, options)
    if tokens.current() is not None:
        raise tokens.error(' '.join(tokens) % 'unexpected ending: %r')
    return Required(*result)
dataset/ETHPy150Open kmike/port-for/port_for/docopt.py/parse_pattern/swapped operands of `%`