From 7f03932477f92cb5a3b5ae0379f3ee7499a340b0 Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 25 Oct 2017 14:56:16 +0200 Subject: [PATCH] Return self on __enter__ --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index ddc089bd3..5a85a83ec 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -692,7 +692,7 @@ class DisabledPipes(list): self.extend(nlp.remove_pipe(name) for name in names) def __enter__(self): - pass + return self def __exit__(self, *args): self.restore()