parameters: (self)
return_statement: return self._lock_file_fd is not None
docstring: True, if the object holds the file lock.
  
          .. versionchanged:: 2.0.0
  
              This was previously a method and is now a property.
docstring_summary: True, if the object holds the file lock.
docstring_tokens: True if the object holds the file lock .
function: def is_locked(self):
          """
          True, if the object holds the file lock.
  
          .. versionchanged:: 2.0.0
  
              This was previously a method and is now a property.
          """
          return self._lock_file_fd is not None
function_tokens: def is_locked ( self ) : return self . _lock_file_fd is not None