Skip to content

Commit

Permalink
Use selector event loop for Python 3.8+ on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
huashengdun committed Oct 2, 2020
1 parent 19d816f commit 760c74a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webssh/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import sys
from webssh._version import __version__, __version_info__


__author__ = 'Shengdun Hua <[email protected]>'


if sys.platform == 'win32' and sys.version_info.major == 3 and \
sys.version_info.minor >= 8:
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

0 comments on commit 760c74a

Please sign in to comment.