fix compatibility with Python 3.8 on Windows

This commit is contained in:
Maximilian Hils 2020-04-03 12:23:00 +02:00
parent 1e3f1b4d2b
commit a1169ca3c3
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
import asyncio
import sys
if sys.platform == 'win32':
# workaround for
# https://github.com/tornadoweb/tornado/issues/2751
# https://www.tornadoweb.org/en/stable/index.html#installation
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())