Py 3.8 check for deprecated loop argument.
This commit is contained in:
parent
0712026e14
commit
d918655bbb
|
@ -585,7 +585,7 @@ def serve(
|
||||||
else:
|
else:
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
if sys.version_info.minor >= 8:
|
if sys.version_info < (3, 8):
|
||||||
_shutdown = asyncio.gather(*coros, loop=loop)
|
_shutdown = asyncio.gather(*coros, loop=loop)
|
||||||
else:
|
else:
|
||||||
_shutdown = asyncio.gather(*coros)
|
_shutdown = asyncio.gather(*coros)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user