Remove dummy variable from function calls

This commit is contained in:
Søren Lind Kristiansen 2018-01-05 09:37:05 +01:00
parent 7f0ab145e9
commit 10dab8eef8
3 changed files with 3 additions and 4 deletions

View File

@ -25,4 +25,4 @@ def blank(name, **kwargs):
def info(model=None, markdown=False): def info(model=None, markdown=False):
return cli_info(None, model, markdown) return cli_info(model, markdown)

View File

@ -38,8 +38,7 @@ def download(model, direct=False):
# package, which fails if model was just installed via # package, which fails if model was just installed via
# subprocess # subprocess
package_path = get_package_path(model_name) package_path = get_package_path(model_name)
link(None, model_name, model, force=True, link(model_name, model, force=True, model_path=package_path)
model_path=package_path)
except: except:
# Dirty, but since spacy.download and the auto-linking is # Dirty, but since spacy.download and the auto-linking is
# mostly a convenience wrapper, it's best to show a success # mostly a convenience wrapper, it's best to show a success

View File

@ -86,6 +86,6 @@ def test_cli_trained_model_can_be_saved(tmpdir):
# spacy train -n 1 -g -1 nl output_nl training_corpus.json training \ # spacy train -n 1 -g -1 nl output_nl training_corpus.json training \
# corpus.json # corpus.json
train(cmd, lang, output_dir, train_data, dev_data, n_iter=1) train(lang, output_dir, train_data, dev_data, n_iter=1)
assert True assert True