Fix urllib for Python 3
@@ -34,7 +34,7 @@ except ImportError:
from thinc.neural.optimizers import Adam as Optimizer
try:
- import urllib
+ import urllib.request
except ImportError:
import urllib2 as urllib
@@ -48,7 +48,6 @@ copy_reg = copy_reg
CudaStream = CudaStream
cupy = cupy
copy_array = copy_array
-urllib = urllib
izip = getattr(itertools, 'izip', zip)
is_windows = sys.platform.startswith('win')
