@app.route('<STR_LIT>')<EOL>def redirect_n_times(request, n):
n = int(n)<EOL>assert n > <NUM_LIT:0><EOL>absolute = request.args.get('<STR_LIT>', '<STR_LIT:false>').lower() == '<STR_LIT:true>'<EOL>if n == <NUM_LIT:1>:<EOL><INDENT>return redirect(app.url_for('<STR_LIT>', _request=request,<EOL>_external=absolute))<EOL><DEDENT>if absolute:<EOL><INDENT>return _redirect(request, '<STR_LIT>', n, True)<EOL><DEDENT>else:<EOL><INDENT>return _redirect(request, '<STR_LIT>', n, False)<EOL><DEDENT>
302 Redirects n times.