<s> """<STR_LIT:U+0020>""" <EOL> from functools import wraps <EOL> from flask import g , flash , redirect , url_for , request <EOL> def requires_login ( f ) : <EOL> @ wraps ( f ) <EOL> def decorated_function ( * args , ** kwargs ) : <EOL> if g . user is None : <EOL> flash ( u'<STR_LIT>' ) <EOL> return redirect ( url_for ( '<STR_LIT>' , next = request . path ) ) <EOL> return f ( * args , ** kwargs ) <EOL> return decorated_function </s>
