def truncate(string, limit=1000):
    if len(string) > limit:
        return string[:limit-20]+'...'+string[-17:]
    else:
        return string
Add a character set alias.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/paste/exceptions/formatter.py/truncate--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/email/charset.py/add_alias