mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 06:44:03 +08:00
Remove some Python 2 compatibility code. (#6624)
This commit is contained in:
@@ -446,9 +446,7 @@ def start_ray_process(command,
|
||||
# in interactive sessions. This is only supported in Python 3.3 and above.
|
||||
def block_sigint():
|
||||
import signal
|
||||
import sys
|
||||
if sys.version_info >= (3, 3):
|
||||
signal.pthread_sigmask(signal.SIG_BLOCK, {signal.SIGINT})
|
||||
signal.pthread_sigmask(signal.SIG_BLOCK, {signal.SIGINT})
|
||||
|
||||
process = subprocess.Popen(
|
||||
command,
|
||||
@@ -1068,9 +1066,6 @@ def start_dashboard(require_webui,
|
||||
if redis_password:
|
||||
command += ["--redis-password", redis_password]
|
||||
|
||||
if sys.version_info <= (3, 0):
|
||||
return None, None
|
||||
|
||||
webui_dependencies_present = True
|
||||
try:
|
||||
import aiohttp # noqa: F401
|
||||
|
||||
Reference in New Issue
Block a user