MCPcopy Create free account
hub / github.com/tox-dev/filelock / break_lock

Method break_lock

src/filelock/_soft.py:172–175  ·  view source on GitHub ↗

Forcibly break the lock by removing the lock file, regardless of who holds it.

(self)

Source from the content-addressed store, hash-verified

170 return False
171
172 def break_lock(self) -> None:
173 """Forcibly break the lock by removing the lock file, regardless of who holds it."""
174 with suppress(OSError):
175 Path(self.lock_file).unlink()
176
177 def _release(self) -> None:
178 assert self._context.lock_file_fd is not None # noqa: S101

Callers 1

test_break_lockFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_break_lockFunction · 0.64