Formatting updates

This commit is contained in:
Joe Farebrother
2024-11-29 10:29:37 +00:00
parent dd8b7a4a8f
commit ebaab89933
5 changed files with 11 additions and 12 deletions

View File

@@ -2,12 +2,12 @@ from flask import Flask, Response, stream_with_context, render_template_string,
app = Flask(__name__)
@app.route("/a") # $routeSetup="/a"
def a(): # $requestHandler
def a(): # $ requestHandler
r = render_template_string("abc") # $ templateConstruction="abc"
return r # $ HttpResponse
@app.route("/b") # $routeSetup="/b"
def b(): # $requestHandler
def b(): # $ requestHandler
s = stream_template_string("abc") # $ templateConstruction="abc"
r = Response(stream_with_context(s)) # $ HttpResponse
return r # $ HttpResponse