use asyncio.run and update requirements to py3.7

This commit is contained in:
rany
2021-06-06 01:35:09 +03:00
parent 23abad46be
commit 01f95a7e90
2 changed files with 3 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ def terminator(signo, stack_frame): sys.exit()
def main():
signal.signal(signal.SIGINT, terminator)
signal.signal(signal.SIGTERM, terminator)
asyncio.get_event_loop().run_until_complete(_main())
asyncio.run(_main())
if __name__ == "__main__":
main()