diff --git a/spacy/cli/info.py b/spacy/cli/info.py index eae0593a4..50844257f 100644 --- a/spacy/cli/info.py +++ b/spacy/cli/info.py @@ -18,7 +18,6 @@ def info(model=None, markdown=False): else: data['source'] = str(model_path) print_info(data, "model " + model, markdown) - else: data = get_spacy_data() print_info(data, "spaCy", markdown) @@ -26,10 +25,8 @@ def info(model=None, markdown=False): def print_info(data, title, markdown): title = "Info about {title}".format(title=title) - if markdown: util.print_markdown(data, title=title) - else: util.print_table(data, title=title) diff --git a/spacy/cli/link.py b/spacy/cli/link.py index 11d01ac11..9abb7bfb4 100644 --- a/spacy/cli/link.py +++ b/spacy/cli/link.py @@ -21,7 +21,6 @@ def link_package(package_name, link_name, force=False): # Python's installation and import rules are very complicated. pkg = importlib.import_module(package_name) package_path = Path(pkg.__file__).parent.parent - meta = get_meta(package_path, package_name) model_name = package_name + '-' + meta['version'] model_path = package_path / package_name / model_name