Method
__exit__
(self, exc_type, exc_val, exc_tb)
Source from the content-addressed store, hash-verified
| 87 | return self.acquire() |
| 88 | |
| 89 | def __exit__(self, exc_type, exc_val, exc_tb): |
| 90 | ignore_not_found = exc_type is not None |
| 91 | # if there was an exception, try to release the lock, |
| 92 | # but don't raise another exception while trying if it was not there. |
| 93 | self.release(ignore_not_found=ignore_not_found) |
| 94 | |
| 95 | def __repr__(self): |
| 96 | return f"<{self.__class__.__name__}: {self.id!r}>" |
Callers
nothing calls this directly
Tested by
no test coverage detected