From 3f1e53eaad6d1969b3707e336696f1e01591948f Mon Sep 17 00:00:00 2001 From: Sheng Date: Thu, 21 Feb 2019 23:41:45 +0800 Subject: [PATCH] Use cpu_count from tornado.process --- webssh/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webssh/handler.py b/webssh/handler.py index 3069e8b..6ea85ec 100644 --- a/webssh/handler.py +++ b/webssh/handler.py @@ -8,10 +8,10 @@ import weakref import paramiko import tornado.web -from multiprocessing import cpu_count from concurrent.futures import ThreadPoolExecutor from tornado.ioloop import IOLoop from tornado.options import options +from tornado.process import cpu_count from webssh.utils import ( is_valid_ip_address, is_valid_port, is_valid_hostname, to_bytes, to_str, to_int, to_ip_address, UnicodeType, is_ip_hostname, is_same_primary_domain