lib/util/log.py
def truncate_word_hard(word):
    '''
    Applies aggressive truncation to a name component. So far, this just
    returns the first character of the supplied word. The result is very short.
    '''
    assert isinstance(word, str), \
        '[internal] word is not a string: %r' % word
    if word:
        return word[0]
    return word

    Applies aggressive truncation to a name component. So far, this just
    returns the first character of the supplied word. The result is very short.
    
Applies aggressive truncation to a name component. So far, this just
returns the first character of the supplied word. The result is very short.
Applies aggressive truncation to a name component . So far this just returns the first character of the supplied word . The result is very short .
def truncate_word_hard(word):
    assert isinstance(word, str), \
        '[internal] word is not a string: %r' % word
    if word:
        return word[0]
    return word
def truncate_word_hard ( word ) : assert isinstance ( word , str ) , '[internal] word is not a string: %r' % word if word : return word [ 0 ] return word
Applies aggressive truncation to a name component.
Applies aggressive truncation to a name component .
'''
    Applies aggressive truncation to a name component. So far, this just
    returns the first character of the supplied word. The result is very short.
    '''
word