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

Method break_lock

src/filelock/_soft.py:145–148  ·  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

143 return False
144
145 def break_lock(self) -> None:
146 """Forcibly break the lock by removing the lock file, regardless of who holds it."""
147 with suppress(OSError):
148 Path(self.lock_file).unlink()
149
150 def _release(self) -> None:
151 fd = self._context.lock_file_fd

Callers 2

force_breakMethod · 0.80
test_break_lockFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_break_lockFunction · 0.64