(self)
return os.path.exists(self.path)
Test if the lock is currently held.

            The lock is held if the PID file for this lock exists.
Test if the lock is currently held.
Test if the lock is currently held .
def is_locked(self):
        """ Test if the lock is currently held.

            The lock is held if the PID file for this lock exists.

            """
        return os.path.exists(self.path)
def is_locked ( self ) : return os . path . exists ( self . path )