<s> """<STR_LIT>""" <EOL> from functools import wraps <EOL> from sudo . views import redirect_to_sudo <EOL> def sudo_required ( func ) : <EOL> """<STR_LIT>""" <EOL> @ wraps ( func ) <EOL> def inner ( request , * args , ** kwargs ) : <EOL> if not request . is_sudo ( ) : <EOL> return redirect_to_sudo ( request . get_full_path ( ) ) <EOL> return func ( request , * args , ** kwargs ) <EOL> return inner </s>
