def outer(func):
    registry.add(match, func)

    def inner(*args, **kwargs):
        func(*args, **kwargs)
    return inner
def outer(func):
    registry.add(match, func)

    def inner(*args, **kwargs):
        func(*args, **kwargs)
    return inner