MCPcopy Create free account
hub / github.com/wal-e/wal-e / __enter__

Method __enter__

wal_e/worker/prefetch.py:40–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 return self.tf.name
39
40 def __enter__(self):
41 self.tf = tempfile.NamedTemporaryFile(
42 dir=self.prefetch_dir.seg_dir(self.segment), delete=False)
43
44 return self
45
46 def __exit__(self, exc_type, exc_val, exc_tb):
47 try:

Callers

nothing calls this directly

Calls 1

seg_dirMethod · 0.80

Tested by

no test coverage detected