From 75f08ad62d9d0b9ea8ecf0454da332f99b00ec45 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Tue, 2 Jun 2020 17:41:25 +0200 Subject: [PATCH] Remove unnecessary check --- spacy/util.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spacy/util.py b/spacy/util.py index 36df5725f..5362952e2 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -253,9 +253,7 @@ def get_model_meta(path): raise ValueError(Errors.E054.format(setting=setting)) if "spacy_version" in meta: about_major_minor = ".".join(about.__version__.split(".")[:2]) - if about_major_minor is not None and not meta["spacy_version"].startswith( - ">=" + about_major_minor - ): + if not meta["spacy_version"].startswith(">=" + about_major_minor): # try to simplify version requirements from model meta to vx.x # for warning message meta_spacy_version = "v" + ".".join(