@contextmanager
def setup(app):
    # __enter__
    request_started.connect(auth_onrequest, app)

    @app.context_processor
    def auth_context_processor():
        try:
            return {'user': g.user }
        except __HOLE__:
            return {}

    yield app
dataset/ETHPy150Open ericmoritz/flask-auth/flaskext/auth/__init__.py/setup