Py 3.8 check for deprecated loop argument.

This commit is contained in:
L. Kärkkäinen 2020-03-01 16:57:03 +02:00
parent 0712026e14
commit d918655bbb

View File

@ -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)