From d918655bbb9146a26c6cbd0206d977612e69ac7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= Date: Sun, 1 Mar 2020 16:57:03 +0200 Subject: [PATCH] Py 3.8 check for deprecated loop argument. --- sanic/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/server.py b/sanic/server.py index 8df37b50..2393d089 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -585,7 +585,7 @@ def serve( else: conn.close() - if sys.version_info.minor >= 8: + if sys.version_info < (3, 8): _shutdown = asyncio.gather(*coros, loop=loop) else: _shutdown = asyncio.gather(*coros)