3 class ArvadosFileBase(object):
4 def __init__(self, name, mode):
10 def _before_close(orig_func):
11 @functools.wraps(orig_func)
12 def wrapper(self, *args, **kwargs):
14 raise ValueError("I/O operation on closed stream file")
15 return orig_func(self, *args, **kwargs)
21 def __exit__(self, exc_type, exc_value, traceback):