class_docstr: Base class for file locks.
      
class_docstr_tok: ["Base","class","for","file","locks","."]
code: def __del__(self):
      if hasattr(self, "fd") and self.fd:
          try:
              self.release()
          except:
              pass
  
file_path: whoosh/src/whoosh/util/filelock.py
imports: import errno
  import os
  import sys
  import time
label_desc: Use image node_id 2 for calling the LockBase obj's underlying member method code with example usage: obj.__del__() without return types