summaryrefslogtreecommitdiffhomepage
path: root/test/python/websockets/mirror/asgi.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/python/websockets/mirror/asgi.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/python/websockets/mirror/asgi.py b/test/python/websockets/mirror/asgi.py
index 0f1d9953..72a32d67 100644
--- a/test/python/websockets/mirror/asgi.py
+++ b/test/python/websockets/mirror/asgi.py
@@ -3,16 +3,16 @@ async def application(scope, receive, send):
while True:
m = await receive()
if m['type'] == 'websocket.connect':
- await send({
- 'type': 'websocket.accept',
- })
+ await send({'type': 'websocket.accept'})
if m['type'] == 'websocket.receive':
- await send({
- 'type': 'websocket.send',
- 'bytes': m.get('bytes', None),
- 'text': m.get('text', None),
- })
+ await send(
+ {
+ 'type': 'websocket.send',
+ 'bytes': m.get('bytes', None),
+ 'text': m.get('text', None),
+ }
+ )
if m['type'] == 'websocket.disconnect':
- break;
+ break