parseindex: implement context manager method on the wrapper
This is needed for incoming cleanups.
--- a/tests/test-parseindex.t Tue Feb 06 11:52:37 2018 +0100
+++ b/tests/test-parseindex.t Tue Feb 06 12:25:11 2018 +0100
@@ -41,6 +41,13 @@
> def __getattr__(self, key):
> return getattr(self.real, key)
>
+ > def __enter__(self):
+ > self.real.__enter__()
+ > return self
+ >
+ > def __exit__(self, *args, **kwargs):
+ > return self.real.__exit__(*args, **kwargs)
+ >
> def opener(*args):
> o = vfs.vfs(*args)
> def wrapper(*a, **kwargs):