def decorator(func):
    """
    Decorator for decorators. Calls the 'decorated' function above for the decorated function, to preserve docstrings.
    """
    def decoratorFunc(origFunc, *x):
        args = (origFunc,) + x
        if x:
            origFunc = x[0]
        newFunc = func(*args)
        decorated(origFunc, newFunc, (func.__module__, func.__name__) % "%s.%s")
        return newFunc
    decorated(func,decoratorFunc, "%s.%s" % (__name__, "decorator"))
    return decoratorFunc
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/moBu/site-packages/PyMoBu-0.2/pymobu/core.py/decorator/swapped operands of `%`