Fix quick start with arguments example

I believe the inner call of the example should be to wrapped() not wrapper()
This commit is contained in:
rsyring
2013-09-27 10:37:40 -04:00
parent 34e963a757
commit 82fc746785

View File

@@ -42,7 +42,7 @@ the inner wrapper when the wrapped function is called.
def with_arguments(myarg1, myarg2):
@wrapt.decorator
def wrapper(wrapped, instance, args, kwargs):
return wrapper(*args, **kwargs)
return wrapped(*args, **kwargs)
return wrapper
@with_arguments(1, 2)