webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit 760c74a2f7c7227ac0df30abd879254b8118642d
parent 19d816f9914f765e5cc8f1e48386e5d8e5eac4cc
Author: Sheng <webmaster0115@gmail.com>
Date:   Fri,  2 Oct 2020 11:29:48 +0800

Use selector event loop for Python 3.8+ on windows

Diffstat:
Mwebssh/__init__.py | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/webssh/__init__.py b/webssh/__init__.py @@ -1,4 +1,11 @@ +import sys from webssh._version import __version__, __version_info__ __author__ = 'Shengdun Hua <webmaster0115@gmail.com>' + + +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())