From 178cb321aa5b2d2fc1a44eb6f973c48b55ee55ed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Dec 2021 16:06:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- proxy/plugin/modify_websocket_response.py | 8 +++++--- proxy/plugin/web_server_route.py | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/proxy/plugin/modify_websocket_response.py b/proxy/plugin/modify_websocket_response.py index 7d5e9dd3..1ed4d88d 100644 --- a/proxy/plugin/modify_websocket_response.py +++ b/proxy/plugin/modify_websocket_response.py @@ -22,7 +22,9 @@ class ModifyWebsocketResponsePlugin(HttpProxyBasePlugin): while len(remaining) > 0: response = WebsocketFrame() remaining = response.parse(remaining) - self.client.queue(memoryview( - WebsocketFrame.text(b"modified websocket response") - )) + self.client.queue( + memoryview( + WebsocketFrame.text(b'modified websocket response'), + ), + ) return memoryview(b'') diff --git a/proxy/plugin/web_server_route.py b/proxy/plugin/web_server_route.py index 42e341ec..398b6686 100644 --- a/proxy/plugin/web_server_route.py +++ b/proxy/plugin/web_server_route.py @@ -39,6 +39,8 @@ class WebServerPlugin(HttpWebServerBasePlugin): self.client.queue(HTTPS_RESPONSE) def on_websocket_message(self, frame: WebsocketFrame) -> None: - self.client.queue(memoryview( - WebsocketFrame.text(b"Websocket route response"), - )) + self.client.queue( + memoryview( + WebsocketFrame.text(b'Websocket route response'), + ), + )