def abbrev(str, max_len):
    if len(str) > max_len: return str[:max_len] + "..."
    else: return str
Return a string  of up to max length.
dataset/ETHPy150Open braiden/python-ant-downloader/antd/garmin.py/abbrev