

def _get_email_from_cms_service(settings, email_name):
    (locale, name) = _get_email_locale_n_name(email_name)
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    client = service.Client(settings.cms_service_host, loop)
    req = client.get_template(locale, name)
    res = loop.run_until_complete(req)
    return res

dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py _get_email_from_cms_service/original