Remove some Python 2 compatibility code. (#6624)

This commit is contained in:
Robert Nishihara
2019-12-31 17:14:58 -08:00
committed by GitHub
parent ecddaafd94
commit 480206eef8
27 changed files with 47 additions and 191 deletions
+1 -6
View File
@@ -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