From e0b4984aa40b02a116059cba8ce599d69c0bab9b Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 29 Aug 2020 12:08:46 +0200 Subject: [PATCH] Make deprecated disable_pipes call into select_pipes --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index 6020bb6de..d698d6f43 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -938,7 +938,7 @@ class Language: warnings.warn(Warnings.W096, DeprecationWarning) if len(names) == 1 and isinstance(names[0], (list, tuple)): names = names[0] # support list of names instead of spread - return DisabledPipes(self, names) + return self.select_pipes(disable=names) def select_pipes( self,