class_docstr: Abstract base class for a file lock object.
docstr: :return: A boolean indicating if the lock file is holding the lock currently.
  
  .. versionchanged:: 2.0.0
  
      This was previously a method and is now a property.
docstr_tok: [":","return",":","A","boolean","indicating","if","the","lock","file","is","holding","the","lock","currently",".","..","versionchanged",":",":","2.0.0","This","was","previously","a","method","and","is","now","a","property","."]
code: def is_locked(self):
      """
  
      :return: A boolean indicating if the lock file is holding the lock currently.
  
      .. versionchanged:: 2.0.0
  
          This was previously a method and is now a property.
      """
      return self._lock_file_fd is not None
  
imports: import logging
  import time
  from threading import Lock
  from ._error import Timeout
label_desc: Use image node_id 7 for calling the BaseFileLock obj's underlying member method code with example usage: obj.is_locked() and returns: unknown