(self, args)
LOCK: set file or record locks.
LOCK: set file or record locks.
LOCK : set file or record locks .
def lock_(self, args):
        """LOCK: set file or record locks."""
        num = values.to_int(next(args))
        error.range_check(0, 255, num)
        thefile = self.get(num)
        lock_start_rec, lock_stop_rec = args
        try:
            thefile.lock(*self._get_lock_limits(lock_start_rec, lock_stop_rec))
        except AttributeError:
            # not a disk file
            raise error.BASICError(error.PERMISSION_DENIED)
def lock_ ( self , args ) : num = values . to_int ( next ( args ) ) error . range_check ( 0 , 255 , num ) thefile = self . get ( num ) lock_start_rec , lock_stop_rec = args try : thefile . lock ( * self . _get_lock_limits ( lock_start_rec , lock_stop_rec ) ) except AttributeError : # not a disk file raise error . BASICError ( error . PERMISSION_DENIED )