From 7d265a9c62406d8c6c9b617f04a1508fb97a095a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 8 Jun 2015 00:48:56 +0200 Subject: [PATCH] * Revert to wget in spacy.en.download --- spacy/en/download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/en/download.py b/spacy/en/download.py index 03a01564a..a89ca6589 100644 --- a/spacy/en/download.py +++ b/spacy/en/download.py @@ -3,8 +3,8 @@ from os import path import os import tarfile import shutil +import wget import plac -import urllib # TODO: Read this from the same source as the setup VERSION = '0.8.5' @@ -21,7 +21,7 @@ SPEECH_DATA_DIR_URL = '%s/en_data_speech-%s.tgz' % (AWS_STORE, VERSION) DEST_DIR = path.join(path.dirname(__file__), 'data') def download_file(url, out): - urllib.urlretrieve(url, filename=path.join(out, url.rsplit('/', 1)[1])) + wget.download(url, out=out) return url.rsplit('/', 1)[1]