def ownlock(self):
        '''Check if we own the lock'''
        lock = self._readlock()
        return (self.fddr() == self.pddr(lock))
Check if we own the lock
recipes/Python/498171_Simple_lockfile_detect_previous_instances/recipe-498171.py