mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 19:08:44 +00:00
9 lines
275 B
Python
9 lines
275 B
Python
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())
|