diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/asgi/urls.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/asgi/urls.py')
| -rw-r--r-- | tests/asgi/urls.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/asgi/urls.py b/tests/asgi/urls.py index 22d85604d1..e6c74ab488 100644 --- a/tests/asgi/urls.py +++ b/tests/asgi/urls.py @@ -5,14 +5,14 @@ from django.urls import path def hello(request): - name = request.GET.get('name') or 'World' - return HttpResponse('Hello %s!' % name) + name = request.GET.get("name") or "World" + return HttpResponse("Hello %s!" % name) def hello_meta(request): return HttpResponse( - 'From %s' % request.META.get('HTTP_REFERER') or '', - content_type=request.META.get('CONTENT_TYPE'), + "From %s" % request.META.get("HTTP_REFERER") or "", + content_type=request.META.get("CONTENT_TYPE"), ) @@ -32,8 +32,8 @@ test_filename = __file__ urlpatterns = [ - path('', hello), - path('file/', lambda x: FileResponse(open(test_filename, 'rb'))), - path('meta/', hello_meta), - path('wait/', sync_waiter), + path("", hello), + path("file/", lambda x: FileResponse(open(test_filename, "rb"))), + path("meta/", hello_meta), + path("wait/", sync_waiter), ] |
