def loadhook(h):
    def processor(handler):
        h()
        return handler()
        
    return processor
Converts a load hook into an application processor.
dataset/ETHPy150Open joxeankoret/nightmare/runtime/web/application.py/loadhook