@app.route("<STR_LIT>")<EOL>def redirect_n_times(n):
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(url_for("<STR_LIT>", _external=absolute))<EOL><DEDENT>if absolute:<EOL><INDENT>return _redirect("<STR_LIT>", n, True)<EOL><DEDENT>else:<EOL><INDENT>return _redirect("<STR_LIT>", n, False)<EOL><DEDENT>
302 Redirects n times.
    ---
    tags:
      - Redirects
    parameters:
      - in: path
        name: n
        type: int
    produces:
      - text/html
    responses:
      302:
        description: A redirection.