mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-12 19:23:55 +00:00
chore: move asyncio import to only import when necessary
This commit is contained in:
parent
d91dee141d
commit
ed59f74cb8
|
@ -1,4 +1,3 @@
|
||||||
import asyncio
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,4 +5,6 @@ def asyncio_setup() -> None: # pragma: no cover
|
||||||
# Set eventloop for win32 setups
|
# Set eventloop for win32 setups
|
||||||
|
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
import asyncio
|
||||||
|
|
||||||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user