@patch
def add_braces_to_openid_regex():
    try:
        import openid.urinorm as urinorm
    except __HOLE__:
        return

    if hasattr(urinorm, 'uri_illegal_char_re'):
        if urinorm.uri_illegal_char_re.search("{"):
            # Invalid regexp for RedIRIS. Try to avoid it.
            urinorm.uri_illegal_char_re = re.compile(urinorm.uri_illegal_char_re.pattern.replace('A-Z', 'A-Z{}'))
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/patcher.py/add_braces_to_openid_regex