def command(methodName, cmdClass=WrapperCommand):
    def wrapper(obj, journal, *args, **kwargs):
        return journal.executeCommand(cmdClass(methodName, obj, args, kwargs))
    return wrapper
Wrap a method so it gets turned into command automatically.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/persisted/journal/base.py/command