mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 05:43:03 +08:00
Remove try/except import asyncio for python 2 (#6947)
This commit is contained in:
@@ -5,11 +5,7 @@
|
||||
|
||||
from cpython.exc cimport PyErr_CheckSignals
|
||||
|
||||
try:
|
||||
import asyncio
|
||||
except ImportError:
|
||||
# Python2 doesn't have asyncio
|
||||
asyncio = None
|
||||
import asyncio
|
||||
import numpy
|
||||
import gc
|
||||
import inspect
|
||||
|
||||
Reference in New Issue
Block a user