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