lib/util/log.py
def apply_truncate_until_satisfied(truncatefn):
        '''
        Applies the specified truncation function to the current working
        components until the length requirement is satisfied. Returns `True` if
        successful, and `False` if it was not enough. Either way, the current
        component state is updated after the application.
        '''
        for i, component in enumerate(current_components):
            truncated_component = truncatefn(component)
            current_components[i] = truncated_component
            if get_current_length() <= maxlen:
                return True
        return False

        Applies the specified truncation function to the current working
        components until the length requirement is satisfied. Returns `True` if
        successful, and `False` if it was not enough. Either way, the current
        component state is updated after the application.
        
Applies the specified truncation function to the current working
components until the length requirement is satisfied. Returns `True` if
successful, and `False` if it was not enough. Either way, the current
component state is updated after the application.
Applies the specified truncation function to the current working components until the length requirement is satisfied . Returns ` True ` if successful and ` False ` if it was not enough . Either way the current component state is updated after the application .
def apply_truncate_until_satisfied(truncatefn):
        for i, component in enumerate(current_components):
            truncated_component = truncatefn(component)
            current_components[i] = truncated_component
            if get_current_length() <= maxlen:
                return True
        return False
def apply_truncate_until_satisfied ( truncatefn ) : for i , component in enumerate ( current_components ) : truncated_component = truncatefn ( component ) current_components [ i ] = truncated_component if get_current_length ( ) <= maxlen : return True return False
Applies the specified truncation function to the current working
components until the length requirement is satisfied.
Applies the specified truncation function to the current working components until the length requirement is satisfied .
'''
        Applies the specified truncation function to the current working
        components until the length requirement is satisfied. Returns `True` if
        successful, and `False` if it was not enough. Either way, the current
        component state is updated after the application.
        '''
truncatefn