class_docstr: File lock based on Windows-only msvcrt module.
      
class_docstr_tok: ["File","lock","based","on","Windows-only","msvcrt","module","."]
code: def release(self):
      import msvcrt  # @UnresolvedImport
  
      if self.fd is None:
          raise Exception("Lock was not acquired")
      msvcrt.locking(self.fd, msvcrt.LK_UNLCK, 1)
      os.close(self.fd)
      self.fd = None
  
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 MsvcrtLock obj's underlying member method code with example usage: obj.release() without return types