<s> from functools import wraps <EOL> from flask import redirect , url_for <EOL> from flask . ext . login import current_user <EOL> def anonymous_required ( f ) : <EOL> @ wraps ( f ) <EOL> def decorated ( * args , ** kwargs ) : <EOL> if current_user . is_authenticated ( ) : <EOL> return redirect ( url_for ( '<STR_LIT>' ) ) <EOL> return f ( * args , ** kwargs ) <EOL> return decorated </s>
