Acquire the lock on the file, forbidding any other Certbot instance to acquire it. :raises errors.LockError: if unable to acquire the lock
(self)
| 53 | return repr_str |
| 54 | |
| 55 | def acquire(self) -> None: |
| 56 | """ |
| 57 | Acquire the lock on the file, forbidding any other Certbot instance to acquire it. |
| 58 | :raises errors.LockError: if unable to acquire the lock |
| 59 | """ |
| 60 | self._lock_mechanism.acquire() |
| 61 | |
| 62 | def release(self) -> None: |
| 63 | """ |