def server_handler(cmd):

    def decorate(func):
        server_commands[cmd] = func
    return decorate
Decorator to be used by modules for declaring server commands.
dataset/ETHPy150Open mossberg/poet/poet/module.py/server_handler