lib/util/log.py
def truncate_word_soft(word):
    '''
    Applies light truncation to a name component. So far, this just removes
    vowels (except first char). The result is probably not truncated by much.
    '''
    assert isinstance(word, str), \
        '[internal] word is not a string: %r' % word
    if not word:
        return word

    vowel_removal_re = '[aeiouAEIOU]'

    truncated_word = word[0] + re.sub(vowel_removal_re, '', word[1:])

    return truncated_word

    Applies light truncation to a name component. So far, this just removes
    vowels (except first char). The result is probably not truncated by much.
    
Applies light truncation to a name component. So far, this just removes
vowels (except first char). The result is probably not truncated by much.
Applies light truncation to a name component . So far this just removes vowels ( except first char ) . The result is probably not truncated by much .
def truncate_word_soft(word):
    assert isinstance(word, str), \
        '[internal] word is not a string: %r' % word
    if not word:
        return word
    vowel_removal_re = '[aeiouAEIOU]'
    truncated_word = word[0] + re.sub(vowel_removal_re, '', word[1:])
    return truncated_word
def truncate_word_soft ( word ) : assert isinstance ( word , str ) , '[internal] word is not a string: %r' % word if not word : return word vowel_removal_re = '[aeiouAEIOU]' truncated_word = word [ 0 ] + re . sub ( vowel_removal_re , '' , word [ 1 : ] ) return truncated_word
Applies light truncation to a name component.
Applies light truncation to a name component .
'''
    Applies light truncation to a name component. So far, this just removes
    vowels (except first char). The result is probably not truncated by much.
    '''
word