@contextlib.contextmanager
def no_jinja_autoescape():
    env = get_env()
    autoescape_orig = env.autoescape
    env.autoescape = False
    yield
    env.autoescape = autoescape_orig
Note:
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/utils.py/no_jinja_autoescape--crossover with--dataset/ETHPy150Open scrapinghub/python-hubstorage/hubstorage/client.py/HubstorageClient.__init__