From 1d9efeef740b778ce5ec6093e416350c7521195d Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 8 Dec 2019 16:22:09 -0800 Subject: [PATCH] Apply black --- datasette/app.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/datasette/app.py b/datasette/app.py index 3a2aefee..75c96db4 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -489,7 +489,10 @@ class Datasette: if hasattr(asyncio, "all_tasks"): tasks = asyncio.all_tasks() d.update( - {"num_tasks": len(tasks), "tasks": [_cleaner_task_str(t) for t in tasks]} + { + "num_tasks": len(tasks), + "tasks": [_cleaner_task_str(t) for t in tasks], + } ) return d @@ -666,9 +669,7 @@ class DatasetteRouter(AsgiRouter): except TemplateNotFound: template = None if template: - await asgi_send_html( - send, await template.render_async(), status=200 - ) + await asgi_send_html(send, await template.render_async(), status=200) else: await super().handle_404(scope, receive, send)