From b0096f119a24c0d70cb74d0760b84e6f2e8259ab Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 1 Nov 2021 21:48:14 -0300 Subject: [PATCH] add hacky patch for python 3.10 --- run.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run.py b/run.py index eac5ce4..df6fb03 100644 --- a/run.py +++ b/run.py @@ -107,6 +107,12 @@ from litecord.gateway.gateway import websocket_handler from litecord.utils import LitecordJSONEncoder +# == HACKY PATCH == +# this MUST be removed once Hypercorn gets py3.10 support. +from asyncio import start_server as _start_server + +asyncio.start_server = lambda *args, loop=None, **kwargs: _start_server(*args, **kwargs) + # setup logbook handler = StreamHandler(sys.stdout, level=logbook.INFO) handler.push_application()