mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Skip unnecessary import
This commit is contained in:
@ -42,7 +42,10 @@ else:
|
|||||||
if sys.version_info >= (3, 9):
|
if sys.version_info >= (3, 9):
|
||||||
from asyncio import to_thread as aio_to_thread
|
from asyncio import to_thread as aio_to_thread
|
||||||
else:
|
else:
|
||||||
from starlette.concurrency import run_in_threadpool as aio_to_thread
|
try:
|
||||||
|
from starlette.concurrency import run_in_threadpool as aio_to_thread
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
PY2 = sys.version_info[0] == 2 # DO NOT REMOVE IT. ESP8266/ESP32 depend on it
|
PY2 = sys.version_info[0] == 2 # DO NOT REMOVE IT. ESP8266/ESP32 depend on it
|
||||||
|
Reference in New Issue
Block a user