objectstore: remove context manager from Object
As `ObjectStore.object` is currently not used via a context manager anywhere in the source, remove the code.
This commit is contained in:
parent
28b8252a04
commit
74e1dea1f7
1 changed files with 0 additions and 7 deletions
|
|
@ -140,13 +140,6 @@ class Object:
|
|||
name = f"object-{self._id[:7]}-"
|
||||
return self.store.tempdir(prefix=name, suffix=suffix)
|
||||
|
||||
def __enter__(self):
|
||||
self._check_mode(Object.Mode.WRITE)
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
self.cleanup()
|
||||
|
||||
def export(self, to_directory: PathLike):
|
||||
"""Copy object into an external directory"""
|
||||
with self.read() as from_directory:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue