Commit ab1b07ac authored by Mattia Rizzolo's avatar Mattia Rizzolo

pep8-ify download.py

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 73e60439
...@@ -115,7 +115,7 @@ class Downloads: ...@@ -115,7 +115,7 @@ class Downloads:
response = requests.get("%s/MD5SUMS" % path) response = requests.get("%s/MD5SUMS" % path)
if response.status_code == 404: if response.status_code == 404:
raise RuntimeError( raise RuntimeError(
"Missing {} {} on {}".format(distro, release, source), "Missing {} {} on {}".format(distro, release, url),
) )
for line in response.text.split("\n"): for line in response.text.split("\n"):
...@@ -223,7 +223,7 @@ class Downloads: ...@@ -223,7 +223,7 @@ class Downloads:
def index(): def index():
return flask.render_template( return flask.render_template(
"download/index.html", "download/index.html",
distros = self.config["distros"], distros=self.config["distros"],
) )
@bp.route("/<distro>") @bp.route("/<distro>")
...@@ -234,10 +234,10 @@ class Downloads: ...@@ -234,10 +234,10 @@ class Downloads:
return flask.render_template( return flask.render_template(
"download/landing.html", "download/landing.html",
distro_name = distro, distro_name=distro,
distro = self.config["distros"][distro], distro=self.config["distros"][distro],
releases = self.config["releases"], releases=self.config["releases"],
archs = self.config["archs"], archs=self.config["archs"],
) )
@bp.route("/+redirect", methods=["POST"]) @bp.route("/+redirect", methods=["POST"])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment