

def filter(self, context):
    p = re.compile('\\(\\)?$')
    for candidate in [candidate for x in context['candidates'] if p.search(x['word'])]:
        candidate['word'] = re.sub('\\(\\)?$', '', candidate['word'])
    return context['candidates']

dataset/ETHPy150Open Shougo/deoplete.nvim/rplugin/python3/deoplete/filters/converter_remove_paren.py Filter.filter/VarMisuse@25/29 `x`->`candidate`