Return self on __enter__

This commit is contained in:
ines 2017-10-25 14:56:16 +02:00
parent 68e9de6917
commit 7f03932477

View File

@ -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()