<s> import asyncio <EOL> import logging <EOL> from . import configuration <EOL> event_handlers = dict ( ) <EOL> function_handlers = dict ( ) <EOL> def handler ( fn ) : <EOL> """<STR_LIT>""" <EOL> module = fn . __module__ . split ( "<STR_LIT:.>" ) [ - <NUM_LIT:1> ] <EOL> key = module + "<STR_LIT:.>" + fn . __name__ <EOL> logging . info ( "<STR_LIT>" + key + "<STR_LIT>" + fn . __module__ ) <EOL> fn = asyncio . coroutine ( fn ) <EOL> event_handlers [ key ] = fn <EOL> return fn <EOL> def function ( fn ) : <EOL> """<STR_LIT>""" <EOL> module = fn . __module__ . split ( "<STR_LIT:.>" ) [ - <NUM_LIT:1> ] <EOL> key = module + "<STR_LIT:.>" + fn . __name__ <EOL> logging . info ( "<STR_LIT>" + key + "<STR_LIT>" + fn . __module__ ) <EOL> fn = asyncio . coroutine ( fn ) <EOL> function_handlers [ key ] = fn <EOL> return fn </s>
