human
I wrote the below code

    def wrapper(request, *args, **kwargs):
        is_secure = settings.TWITTER_COOKIE_SECURE
        if (request.COOKIES.get(REDIRECT_NAME) and (is_secure and (not request.is_secure()))):
            ssl_url = url(request, {'scheme': ('https' if is_secure else 'http')})
            return http.HttpResponseRedirect(ssl_url)
        return view_func(request, *args, **kwargs)
    return wrapper

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def auth_wanted(view_func):