(self, start, stop)
Lock the file.
Lock the file.
Lock the file .
def lock(self, start, stop):
        """Lock the file."""
        # range bounds are ignored on text file
        # we need a tuple in case the other file checking the lock is a random file
        self._locks.acquire_record_lock(self._number, None, None)
def lock ( self , start , stop ) : # range bounds are ignored on text file # we need a tuple in case the other file checking the lock is a random file self . _locks . acquire_record_lock ( self . _number , None , None )