MCPcopy Create free account
hub / github.com/FastLED/FastLED / __exit__

Method __exit__

ci/util/file_lock_rw.py:211–222  ·  view source on GitHub ↗

Release the lock.

(
        self,
        exc_type: type[BaseException] | None,
        exc_val: BaseException | None,
        exc_tb: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

209 time.sleep(0.1)
210
211 def __exit__(
212 self,
213 exc_type: type[BaseException] | None,
214 exc_val: BaseException | None,
215 exc_tb: TracebackType | None,
216 ) -> bool:
217 """Release the lock."""
218 if self._acquired:
219 self._db.release(self._lock_name, os.getpid())
220 self._acquired = False
221
222 return False
223
224
225def write_lock(

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected