Closed sdementen closed 9 years ago
As the function new_view_func is already decorated with @wraps(view_func), the return value of check_sprinkles could be simplied to return new_view_func instead of return wraps(view_func)(new_view_func)
d'oh!
:ship:
As the function new_view_func is already decorated with @wraps(view_func), the return value of check_sprinkles could be simplied to return new_view_func instead of return wraps(view_func)(new_view_func)