MCPcopy Create free account
hub / github.com/certbot/certbot / acquire

Method acquire

certbot/src/certbot/_internal/lock.py:55–60  ·  view source on GitHub ↗

Acquire the lock on the file, forbidding any other Certbot instance to acquire it. :raises errors.LockError: if unable to acquire the lock

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 2

__init__Method · 0.95
closeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected