apply pyupgrade

This commit is contained in:
David Lord 2020-04-04 09:43:06 -07:00
parent 57d628ca74
commit 524fd0bc8c
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
54 changed files with 169 additions and 230 deletions

View file

@ -2,4 +2,4 @@ from flask import Flask
app = Flask(__name__)
from js_example import views
from js_example import views # noqa: F401

View file

@ -8,7 +8,7 @@ from js_example import app
@app.route("/", defaults={"js": "plain"})
@app.route("/<any(plain, jquery, fetch):js>")
def index(js):
return render_template("{0}.html".format(js), js=js)
return render_template(f"{js}.html", js=js)
@app.route("/add", methods=["POST"])

View file

@ -1,9 +1,7 @@
import io
from setuptools import find_packages
from setuptools import setup
with io.open("README.rst", "rt", encoding="utf8") as f:
with open("README.rst", encoding="utf8") as f:
readme = f.read()
setup(