mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
style: drop redundant utf-8 encode arguments
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -272,7 +272,7 @@ async def controller_http_notifications(request: Request) -> StreamingResponse:
|
||||
with Controller.instance().notification.controller_queue() as queue:
|
||||
while not app.state.exiting:
|
||||
msg = await queue.get_json(5)
|
||||
yield f"{msg}\n".encode("utf-8")
|
||||
yield f"{msg}\n".encode()
|
||||
finally:
|
||||
log.info(f"Client {client} has disconnected from controller HTTP notification stream")
|
||||
|
||||
|
||||
Reference in new issue
Block a user