(self, predicate)
return found
Remove all files from the file list that match the predicate.
        Return True if any matching files were removed
Remove all files from the file list that match the predicate.
        Return True if any matching files were removed
Remove all files from the file list that match the predicate . Return True if any matching files were removed
def _remove_files(self, predicate):
        """
        Remove all files from the file list that match the predicate.
        Return True if any matching files were removed
        """
        found = False
        for i in range(len(self.files) - 1, -1, -1):
            if predicate(self.files[i]):
                self.debug_print(" removing " + self.files[i])
                del self.files[i]
                found = True
        return found
def _remove_files ( self , predicate ) : found = False for i in range ( len ( self . files ) - 1 , - 1 , - 1 ) : if predicate ( self . files [ i ] ) : self . debug_print ( " removing " + self . files [ i ] ) del self . files [ i ] found = True return found