Rename about.__docs__ to about.__docs_models__

This commit is contained in:
ines 2017-05-13 13:09:00 +02:00
parent 6e1dbc608e
commit 24e973b17f
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ __author__ = 'Matthew Honnibal'
__email__ = 'matt@explosion.ai'
__license__ = 'MIT'
__docs__ = 'https://spacy.io/docs/usage'
__docs_models__ = 'https://spacy.io/docs/usage'
__download_url__ = 'https://github.com/explosion/spacy-models/releases/download'
__compatibility__ = 'https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json'
__shortcuts__ = 'https://raw.githubusercontent.com/explosion/spacy-models/master/shortcuts.json'

View File

@ -79,5 +79,5 @@ def check_error_depr(model):
"As of v1.7.0, the download all command is deprecated. Please "
"download the models individually via spacy.download [model name] "
"or pip install. For more info on this, see the documentation: "
"{d}".format(d=about.__docs__),
"{d}".format(d=about.__docs_models__),
title="Deprecated command")

View File

@ -146,7 +146,7 @@ class ModelDownload():
"The spacy.{l}.download command is now deprecated. Please use "
"python -m spacy download [model name or shortcut] instead. For more "
"info and available models, see the documentation: {d}. "
"Downloading default '{l}' model now...".format(d=about.__docs__, l=lang),
"Downloading default '{l}' model now...".format(d=about.__docs_models__, l=lang),
title="Warning: deprecated command")
download(lang)