<s> from __future__ import with_statement <EOL> from flask import Blueprint , render_template , redirect <EOL> mod = Blueprint ( '<STR_LIT>' , __name__ , url_prefix = '<STR_LIT>' ) <EOL> @ mod . route ( '<STR_LIT:/>' ) <EOL> def index ( ) : <EOL> return render_template ( '<STR_LIT>' ) <EOL> @ mod . route ( '<STR_LIT>' , defaults = { '<STR_LIT>' : <NUM_LIT:1> } ) <EOL> @ mod . route ( '<STR_LIT>' ) <EOL> def archive ( page ) : <EOL> return redirect ( '<STR_LIT>' ) <EOL> @ mod . route ( '<STR_LIT>' ) <EOL> def show_thread ( year , month , day , slug ) : <EOL> return redirect ( '<STR_LIT>' <EOL> % ( year , month , day , slug ) ) </s>
