MCPcopy Create free account
hub / github.com/ActiveState/code / __del__

Method __del__

recipes/Python/577524_Python_Sessions/recipe-577524.py:286–290  ·  view source on GitHub ↗

Make sure that the FileLock instance doesn't leave a lockfile lying around.

(self)

Source from the content-addressed store, hash-verified

284 self.release()
285
286 def __del__(self):
287 """ Make sure that the FileLock instance doesn't leave a lockfile
288 lying around.
289 """
290 self.release()
291
292def print_session(session):
293 """

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.95

Tested by

no test coverage detected