Skip to content

Commit

Permalink
Skip unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Mar 18, 2024
1 parent c01ef88 commit 0d647e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platformio/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def shlex_join(split_command):
if sys.version_info >= (3, 9):
from asyncio import to_thread as aio_to_thread
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
Expand Down

0 comments on commit 0d647e1

Please sign in to comment.